Hide "Actions" on incident form in service portal

jparman
Tera Guru

Hi!

 

I have a requirement to hide "Actions" on incident form in service portal when state is Rejected.

 

Screenshot 2024-04-29 181404.png

 

We want the same behavior as when incident state is Cancelled.

Screenshot 2024-04-29 181500.png

 

Can anyone help? Thanks!

 

 

1 ACCEPTED SOLUTION

Hi Vishwa,

 

Thanks for your input. However I think the best way to do this is to override the script include IncidentUtilsSNC using IncidentUtils.

 

You just have to add the state Rejected in the condition. No need to update the widget itself.

 

 

aaa.png

View solution in original post

2 REPLIES 2

Vishwa Pandya19
Mega Sage

Hello,

 

For this you will have to update "Incident Standard Ticket Actions" widget, but updating it is not allowed.

You will have to clone the widget and add on a condition in the widget. 

 

Please refer below discussion to know how to set a condition in the HTML of the widget.
https://www.servicenow.com/community/developer-forum/hide-custom-widget-button/m-p/1973340

 

If my answer has helped you in any way please mark it as correct or helpful.

Hi Vishwa,

 

Thanks for your input. However I think the best way to do this is to override the script include IncidentUtilsSNC using IncidentUtils.

 

You just have to add the state Rejected in the condition. No need to update the widget itself.

 

 

aaa.png