Hide Escalte button from a form

VishakhaShi
Tera Contributor

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?

3 REPLIES 3

Mark Manders
Mega Patron

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

vishakhayadav24
Tera Guru

@VishakhaShi 

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

Abnezer G
Tera Guru

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

AbnezerG_1-1721823083487.png

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.