how to check if a field contains backslash using client script
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-05-2016 03:32 AM
how to check if a field contains backslash using client script
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-05-2016 03:41 AM
Try below:-
if (g_form.getValue('u_urfieldname'').indexOf('\\')>=0)
{
alert('baclslash present ');
g_form.setValue('u_urfieldname', '');
}
Mark Correct if it solved your issue or hit Like and Helpful if you find my response worthy.
Thanks,
Deepa