Hide Escalte button from a form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2024 01:03 AM
we wanted to hide the the escalate button from the RITM form for specific catalog item- tickets depending on certain condition. How to do that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2024 01:17 AM
Catalog item is a field on the RITM form, so just exclude it from the condition. And if it's too many different catalog items, create a script include you call from the condition.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2024 01:24 AM
You can create UI action with condition like current.cat_item!=sysid of your catalog item (current.cat_item!=gs.getProperty('cat_item'))
and if you have many catalogs(or may be in future you will have ) then create a script include and call it from the condition of UIaction.
Thank you!!
Vishakha Yadav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2024 05:14 AM - edited ‎07-24-2024 05:16 AM
As Mark mentioned
if you are trying to hide escalate button for a single catalog item use the following condition in UI action
(current.sc_catalog!= CATALOG_SYS_ID)
how ever if there are too many different catalog items ,create a script include as show in the picture
then call the script include as in ui action
new CatalogEscalationUtils().canRequestEscalation(current)
Please then mark it as helpful or correct if my answer helped.