how to check if a field contains backslash using client script

sahitya1
Tera Contributor

how to check if a field contains backslash using client script

5 REPLIES 5

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