I need to hide variables on approval form on some conditions

Tanya Rathor1
Tera Contributor

Hi All,

 

I have requirement to hide variables on one of the specific catalog item ,

I used UI policy to set a variables on some conditions and checked true on RITM.

Its working fine on RITM, but on Approval Form extra fields is visible.

please suggest how to hide variables on Approval form like I hide on SR Form.

@AnubhavRitolia please advice on this ?

 

Regards,

Tanya

5 REPLIES 5

David House
Tera Guru

Hi Tanya,

 

I believe what you are attempting to achieve is to prevent variables, that have been hidden via UI policy (or client script for that matter), from being included in approval email notifications.

 

I have been looking into this myself as this is something I am trying to achieve as well. The only solution I have found so far is to ensure the variable has been cleared prior to submitting the catalog item. I use an onSubmit client script on the catalog item, and clear the value of any field that is hidden and shouldn't be shown in the approval emails.

 

This also prevents the field from showing to the customer in their summary tab when viewing their request in the service portal.

 

Sadly, this appears to be the only method so far, as there is no way to see that a variable is hidden when you reach the email notification.

 

I hope this helps.

David