Why cancel button for problem is not working for workspace?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2025 01:43 AM
Hi Team,
Cancel button is not working for Problem.
Script :-
This is the OOTB button,
same button is working in m py PDI also after clicking cancel button state changes to root cause analysis, but after that again clicking on cancel its not working?
what could be the issue, only workspace script I can see few lines added, I dont think those lines are reason of issue, also tried to remove them
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2025 06:00 AM
something like this in workspace client script, ensure both the checkboxes are checked
function onClick(g_form) {
if (g_form.getValue('close_notes') == '') {
g_form.addInfoMessage(getMessage('Please fill the value'));
g_form.setMandatory('close_notes', true);
return;
}
}
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2025 02:33 AM
make true the check box format for configurational workspace.
If my response helped please mark it correct and close the thread so that it benefits future readers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2025 05:05 AM
Hi @NagaChandaE @Ankur Bawiskar ,
What is use of format for configurational workspace, I checked but its not working and its also not going back to unchecked?
How to do that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2025 05:11 AM
By checking only the script will run otherwise it just show you a button.
Actually the cancel button in sow workspace is not a ui action. It is a declarative action specifically designed for workspaces.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2025 05:13 AM
You just uncheck the workspace form buttton and format for workspace and remove code it will work normally . update me whether it worked or not