Assignment group read only
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2024 12:23 PM
Hi Team,
I have to make assignment group (which is mandatory) read only, based on the a choice field and the roles of a user i.e..,
I have field named "desk" with 3 choices "it", "hr", "dat entry" and the field will be populated with "it" when the form loads, I have to make assignment group read only when the "desk is "it" and assignment group should be editable by Admin and itil admin users. When users select another choice of the field
I have tried using ui policies and client script but not working, can anyone help me out to achieve this.
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2024 12:27 PM
Hello @DSV22
This can be achieved using Cleint script, can you please share the Script you have written.
You can check roles in client script by using
g_user.hasRole('admin');
Kind Regards,
Ravi Chandra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2024 11:50 PM
Hi @DSV22 ,
Please share a snip of the UI policy / Client script that you have created?
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Best regards
Anders
If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.
Best regards
Anders
Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2024 12:01 AM
Hi @AndersBGS, @Nikhil Bajaj9 , @Ravi Chandra_K
I have used the this code in the ui policy, please check the code and do need full help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2024 11:57 PM
Yes these can be achieved using proper conditions in UI policy or client script. Better to sharer your code snippet so that we can guide you accordingly.
Regards,
Nikhil Bajaj