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.

parsing error unexpected token on Client Script

cstangoe
Mega Guru
2 REPLIES 2

-O-
Kilo Patron

If this is the entire script, then it is missing a closing }.

Tony Chatfield1
Kilo Patron

Hi, your script does not appear to reference your data, I assume the source is a form field?

var myField = g_form.getValue('budget_holder_cost_centres_1');
var reg = /^[\d]{6}(?:(,?|)(?:[\d]{6}\1)*[\d]{6})?$/;
if (!reg.test(myField))
		{
}