Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to make company field editable based on logged in user parent group

Gopal14
Tera Contributor

Hi Team,

 

I need company field editable based on logged in user parent group?

 

right now company field is read-only. 

 

when parent group is "Software", then I need company field as editable

 

 

2 REPLIES 2

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Gopal14 

 

You can use the UI policy for same and with dot walk get the value and then in UI action make it editable.

*************************************************************************************************************
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]

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

Brad Tilton
ServiceNow Employee
ServiceNow Employee

If the requirement to make a field editable only if the logged in user belongs to a group with the with a specific parent group set I think the best way to do this would be with an ACL, which would control whether the field is editable from a form or a list. Outside of that, you could probably use a display business rule that determines whether the user should have access, writes true or false to a scratchpad variable, and use a client script to set the field read only or not. This would only apply to the form and is generally not as secure as an ACL.