Assignment group read only

DSV22
Tera Contributor

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

 

7 REPLIES 7

Ravi Chandra_K
Kilo Patron
Kilo Patron

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 

AndersBGS
Tera Patron
Tera Patron

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/

DSV22
Tera Contributor

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.

Nikhil Bajaj9
Giga Sage

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.

Please appreciate my efforts, help and support extended to you by clicking on – “Accept as Solution”; button under my answer. It will motivate me to help others as well.
Regards,
Nikhil Bajaj