Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

Widget Client Controller Error

Johny1
Tera Expert

Hi Everyone,


In the widget client controller script I see an error showing expected an identifier and instead saw ','

Could you please help what should be done here.

find_real_file.png

Thanks,
Johny

1 ACCEPTED SOLUTION

Sai Kumar B
Mega Sage

@Johny Try the below syntax

spUtil.recordWatch($scope, "table_name", "filter", function(name) {
    
//your code
    
});
  
}

View solution in original post

2 REPLIES 2

Sai Kumar B
Mega Sage

@Johny Try the below syntax

spUtil.recordWatch($scope, "table_name", "filter", function(name) {
    
//your code
    
});
  
}

Sai Kumar B
Mega Sage

@Johny Thanks for marking my response as helpful, If it's working as expected kindly mark it as correct and close the loop it would help future readers as well