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.

calculate field check box

Anjali yadav1
Tera Contributor

on selecting a field on a form I am not able to check the value of the calculated field to true and am not able to write a script also 

any solution help and give suggestion

1 REPLY 1

Sanjay191
Tera Sage
Tera Sage

Hello @Anjali yadav1 
try to use below script to update and script logic should be
var grTable  = new GlideRecord("incident");
grTable.addQuery('sys_id',"sysID of the record");

grTable.query();

if(grTable.next()){

grTable.setValue('field backend name ',true)// i believe this field is boolean
grTable.update();
}

runs this background script.

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Thank You