How to make company field editable based on logged in user parent group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2024 03:35 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2024 03:38 AM
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]
****************************************************************************************************************

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2024 06:53 AM
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.