Some PDIs are currently unavailable, and PDI actions are paused. View the latest updates here. Read More

How to make variables mandatory or readonly if sc_task state will move cancell

Santosh Oraon
Tera Expert

Hi Everyone,

I need some guidance on a ServiceNow requirement.

When the SC Task (sc_task) state changes to Cancelled, I want to make certain catalog variables either mandatory or read-only.

What is the best way to achieve this? Should I use a Catalog Client Script, UI Policy, Business Rule, or another approach?

Any suggestions or examples would be appreciated. Thanks!

SantoshOraon_0-1785397805011.png

 

5 REPLIES 5

Ankur Bawiskar
Tera Patron

@Santosh Oraon 

if you are planning to make sure those variables are mandatory before cancellation then you should use onChange client script on sc_task, before update BR on sc_task as User can cancel it from list as well

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader