- 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 02:13 AM
Hi Goutham,
Did you get your answer by my reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2017 01:37 AM
Hi Goutham,
Use the below Code in Onchange Client script.
function onChange(control, oldValue, newValue, isLoading) {
if(!isLoading){
var val = newValue;
var achar = '0123456789.';
var failmsg = 'This Field Should Allow the Numeric value.';
var array1 = val.toLowerCase().split('');
for (var i=0; i < array1.length; i++){
if (achar.indexOf(array1[i]) >= '0'){
}
else{
alert(failmsg);
g_form.setValue('field name', '');
}
}
}
}
Ple hit/Like if this is helpful for you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2017 01:38 AM
Hi,
Please try the below OnChange client script.
function onChange(control, oldValue, newValue, isLoading) {
if(isLoading || newValue == ''){
return;
}
var pattern = /^[0-9]*$/;
if(!pattern.test(newValue) || (newValue.length <= 9) )
{
alert('please enter only digits and min length should be 10 ');
g_form.setValue('field_name', ''); // adjust field name accordingly if you want to blank it out.
}
}
Lrt me know if any concerns.
Regards,
Sampath.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2017 11:28 PM
THANKS bro its working