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

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

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

 

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
Tera 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.