I need to hide variables on approval form on some conditions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2023 10:44 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2023 06:48 PM
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