- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2017 08:57 AM
hi ,
i want to insert a phone number field using script any idea how to do it ?
thanks,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2017 09:12 AM
The phone territory (box above the phone number field) will automatically reflect the proper phone territory. You will need to set the phone number via script with a valid E.164 format so for example in the US it would be +18005551212 and the phone territory will automatically reflect "North America" since the phone number starts with +1.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2017 09:02 AM
Hi ,
you want to make a field on form to enter only 10 digit phone number?
Thanks,
Harshvardhan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2017 09:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2017 09:12 AM
The phone territory (box above the phone number field) will automatically reflect the proper phone territory. You will need to set the phone number via script with a valid E.164 format so for example in the US it would be +18005551212 and the phone territory will automatically reflect "North America" since the phone number starts with +1.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2017 09:48 AM
Hi
Please check the script below .
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
g_form.clearValue('u_test');
return;
}
//Type appropriate comment here, and begin script below
var caller = g_form.getReference('caller_id', setMobile);
function setMobile(caller) {
if (caller)
g_form.setValue('u_test', caller.mobile_phone);
}
}
if you don't want to use call back function then create a script include and call it through glide ajax.
Hope it will help you
Thanks,
Harshvardhan