Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

In Customer service , if the state is cancelled , make everything readonly by client script.

prastuti
Tera Contributor
 
5 REPLIES 5

Tanushree Maiti
Tera Sage

Hi @prastuti 

 

Best practice is to use UI policy over Client Script to make fields Visible/mandatory/ReadOnly.

 

By the way , what issue - you are facing. Give a screen shot.

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

Sneha KH
Giga Guru

Hello @prastuti,
Go to System UI--> UI Policies. Fill the case table and in when to apply tab add condition as state is cancelled and save the record. In UI Policy Action related list give field name and check read only field.
UI Policy is best than Client Script to add and to avoid unnecessary script. Best practice is UI Policy.

Ankur Bawiskar
Tera Patron

@prastuti 

why client script? I won't recommend client script. Use ACL

You should achieve this using Table.None WRITE ACL so that it's blocked from Form and List

Check OOTB ACL on Case table and modify accordingly

💡 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

@prastuti 

Hope you are doing good.

Did my reply answer your question?

💡 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