I am trying to make specifc fields to be only visible to certain roles on the RITM and Tasks

Hola Ola
Giga Guru

Hello all, 

 

I have developed a catalog item (form) that ALL the fields should be visible to ALL users.

 

However, once the form is submitted, due to the sensitive nature of some of the fields, I'll like to make those fields ONLY visible to users with specific roles on the RITM and SCTask

 

I have used the Read roles on the Variables, which didn't work - it hid those fields everywhere, including from catalog view for those without the roles. 

 

What's my option?

 

Thank you

7 REPLIES 7

Hola Ola
Giga Guru

@Sandeep Rajput 

Could you help me with this?

 

AbdulNow
Tera Guru

Hi @Hola Ola  - Please follow the below screenshot steps.

 

1. Create a Catalog UI policy  and Uncheck the applies on a Catalog form View.

Screenshot 2024-11-06 at 4.13.44 AM.png

2. Please refer to the script below as a sample to hide fields based on the logged-in user's roles in the script tab.

 

Screenshot 2024-11-06 at 4.14.54 AM.png

If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.


Regards
Wahid

@AbdulNow 

Thanks for the response. 

But this thing is not hiding the fields as it should.

 

Very frustrated now.