We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

calculate field check box

AnjaliY27945328
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
Kilo Patron

Hello @AnjaliY27945328 
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