How to make hide only particular user in catalog item reference field

praveen1231
Tera Contributor

Hi,

Here is my case - I had created a catalog item variable called mygroup(sys_user). In this case I need to hide a particular user who had title CEO. Please let me know if you have any idea regarding this. Thanks you.

1 ACCEPTED SOLUTION

Hello,

 

That is probably because it is removing all the users which has title as empty.

Please update the reference qualifier with the below code:-

 

Saurav11_0-1695976571446.png

 

javascript:'titleISEMPTY^ORtitle!=CEO'

 

Please mark my answer as correct based on Impact.

 

View solution in original post

5 REPLIES 5

Saurav11
Kilo Patron
Kilo Patron

Hello,

 

I believe it is a reference variable so what you can do is in the variable in reference qualifier add the below code as it is in the screenshot:-

 

Saurav11_0-1695918352730.png

 

 

javascript:'title!=CEO'

 

Please mark my answer as correct based on Impact.
 

@Saurav11@Saurabh Gupta  thanks for you help, I got an issue. When I add your code(javascript:'title!=CEO') it not only hiding the particular user with title CEO, It also hiding the many user. Total 634 user in my Instance but when I add code in reference qualifier, only 42 users are visible in catalog item field. I had attached the screen short regards the error please overview it and help me to solve the solution. Thank you.

Hello,

 

That is probably because it is removing all the users which has title as empty.

Please update the reference qualifier with the below code:-

 

Saurav11_0-1695976571446.png

 

javascript:'titleISEMPTY^ORtitle!=CEO'

 

Please mark my answer as correct based on Impact.

 

@Saurav11 can you help me to solve the issue again. I had created a catalog item variable called Executive Group. In that variable only particular group member are Visible. User with title CEO is also a member of the group. Now I need to restrict the user with title CEO in that group. I had attached the screen short regards the update please overview it and help me to solve the solution. Thank you.