- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2024 01:16 AM
Hi!
I have a requirement to hide "Actions" on incident form in service portal when state is Rejected.
We want the same behavior as when incident state is Cancelled.
Can anyone help? Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2024 04:33 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2024 01:39 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2024 04:33 PM
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.