how to set alphanumeric values on variable field
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2022 11:23 PM
Hi,
How to set aplhanumeric only in variable using on change client script,Please help on this below script is not executing as expected
var patt = new RegExp("^[a-zA-Z0-9]*$");
if(!patt.test(newValue)){
// error out.
g_form.showFieldMsg('cost_center_sw', 'Invalid input', 'error');
}
Thanks
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2022 10:46 PM
Hi Sanjiv,
That is not executed from my end
Thanks