The CreatorCon Call for Content is officially open! Get started here.

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))
		{
}