Hide Catalogue Variables Based on Role

Dan Tolgyesi1
Tera Expert

Hi,

I was just wondering if there is a way to hide catalogue variables based on role.

On most catalogue items, I have a field where the user must select a amanger to approve the request. However if the user has the "approver" role. They do not need to do this.

Is anyone able to advise on this. I have tried using a UI policy where you select the caller.id.role = approver but this is still not working.

Any Ideas?

Thanks
Dan

5 REPLIES 5

Hello,


Thanks for the input Deep.


I tried the below code and it worked completely fine for a variable ( u_internal_external ).




if ((!g_user.hasRole("snc_external"))){


g_form.setDisplay('u_internal_external', false);


}



Thanks