We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. 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