The CreatorCon Call for Content is officially open! Get started here.

How to remove certain entries in a list from certain users

Thereza Van der
Tera Contributor

Hi all

 

I would like to prevent users from logging a P1 incident. What is the easiest way to hide the 'High' choice on the 'impact' and 'urgency' choice lists? Only 'medium' and 'low' should be visible.

The 'high' option should only be visible to the ServiceDesk.

 

1 ACCEPTED SOLUTION

Sandeep Rajput
Tera Patron
Tera Patron

@Thereza Van der You can either use a client script or UI Policy script to remove the High option from the choice field if the logged in user is not a member of ServiceDesk.

 

g_form.removeOption('priority', '1');
 
 
Hope this helps.

View solution in original post

3 REPLIES 3

Sandeep Rajput
Tera Patron
Tera Patron

@Thereza Van der You can either use a client script or UI Policy script to remove the High option from the choice field if the logged in user is not a member of ServiceDesk.

 

g_form.removeOption('priority', '1');
 
 
Hope this helps.

Hi Sandeep,

 

Can you please show me, I don't have a lot of coding background and I have been battling since yesterday. I cannot get it to work.

 

Regards

Thereza

Your solution to hide the high priority from urgency and impact worked, but the part I am battling with is to show the high priority to all people in the BST-Service Desk group. They should be the only people who are allowed to use the high priority choice in the list.