How to configure onload client script on Change Table

divyal09
Tera Contributor

How to configure On-load client script so that all the users should have edit access only when the state of change request is new or implement. If the state is not new or implement then all the other user other than change management team should not have edit access. All the fields should be greyed out.

3 REPLIES 3

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @divyal09 

 

Better to use ACL / BR for this.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Ankur Bawiskar
Tera Patron
Tera Patron

@divyal09 

You should be using table level WRITE ACL with proper condition to handle this instead of onLoad client script

Something like this. Also ensure there is only 1 table level WRITE ACL or else the other table level write ACL will allow the edit even if your one is blocking

AnkurBawiskar_0-1714139892731.png

 

Also you cannot use business rule to achieve this requirement.

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

I tried adding but its not working. How can we add condition?