Need to disable dialog window when trying to cancel a change request in New state
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11 hours ago
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11 hours ago
Hi @dassan
Solution is given in this post - Script which needs to update in your UI Action "Cancel Change" :
How cancel change UI page is called from UI action?
Replace the existing code with the following snippet, ensuring you use the correct Action Name .
function setChangeCancelState() { gsftSubmit(null, g_form.getFormElement(), 'state_model_move_to_canceled'); } if (typeof window == 'undefined') { current.state = '4'; current.update(); action.setRedirectURL(current); }
Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti