- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2017 01:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2017 02:04 AM
Hii,
Thank you for ur reply actually in incident I didnt find the variable field so can you please tell me how can i do...by providing any screenshots.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2017 01:37 AM
Hi,
Here's a fairly lightweight script that we use onChange on variables pretty frequently. It allows for a few different phone number formats and uses a standard popup.
- function onChange(control, oldValue, newValue, isLoading) {
- if(isLoading || newValue == ''){
- return;
- }
- // Allows formats of (999) 999-9999, 999-999-9999, and 9999999999
- var pattern = /^[(]?(\d{3})[)]?[-|\s]?(\d{3})[-|\s]?(\d{4})$/;
- if(!pattern.test(newValue)){
- alert('Phone enter a valid phone number');
- g_form.setValue('variablename', '');
- }
- }
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2017 02:04 AM
Hii,
Thank you for ur reply actually in incident I didnt find the variable field so can you please tell me how can i do...by providing any screenshots.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2017 02:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2017 02:18 AM
Hii,
I didnt get it..I got that field bt in phone number options india is not available and how can see the output.If i enter any number i get alert.so can you please.