Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

how to set alphanumeric values on variable field

Nagendra Rao Si
Tera Contributor

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

Hi Sanjiv,

 

That is not executed from my end

 

Thanks