Onload client script not working as expected on "Service Operations Workspace"

Ansh Mahajan
Tera Contributor

I wrote an onload client script on "incident" table to make remove some choices in the state field when the record is in in progress. The script is working fine on "Agent Workspace" but it is not working as expected on "Service Operations Workspace". Basically the choices are not getting updated. 

For example:- When the record is in "On Hold" state only option available in the state field should be "in progress". but when we move from "On Hold" to "in progress" the available options should be "in progress" , " On Hold" and "Resolved" but the options available are "in progress"  and " On Hold". 

 

to make it work we have to reload the entire page manually after updating the record. 

 

 how can we make it work as soon as someone will save/update the form.

 

5 REPLIES 5

Yes, refer below link.

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0755115

 


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP