Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to hide button in actions box

babbi
Tera Expert

Hi Team,

 

We have created a button (Escalation) in portal..we have requirements like after clicking escalation button the ticket is escalated. Here the button should be hide ? 

 

How to achieve this.

 

Thanks,

Sai

 

 

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@babbi 

you need to check the widget which shows those options under Action.

Then update the code

Please check if that is an OOB widget or a new widget

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar Thanks for your reply.

 

We are using cloned widget - we need to hide that option(escalation). if user already raised the escalation.

 

Please help with the script.

 

Thanks,

Sai

@babbi 

then you can use server side to check if logged in user already has raised escalation and based on that hide that option

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader