- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2024 11:51 PM
Hi All,
I have the following UI action on the Change form to cancel the change request.
below script is used
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2024 12:51 AM
It should be something like below:
Update Script and Workspace Client script part:
function setChangeCancelState() {
g_form.setValue("state", "4");
// Call the UI Action and skip the 'onclick' function
gsftSubmit(null, g_form.getFormElement(), 'change_state'); // MUST call the 'Action name' set in this UI Action
}
Thanks
Anil Lande

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2024 12:51 AM
It should be something like below:
Update Script and Workspace Client script part:
function setChangeCancelState() {
g_form.setValue("state", "4");
// Call the UI Action and skip the 'onclick' function
gsftSubmit(null, g_form.getFormElement(), 'change_state'); // MUST call the 'Action name' set in this UI Action
}
Thanks
Anil Lande
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2024 12:52 AM
Hi @Anil Lande
Sure. Please refer below screenshot.
Change is not getting cancelled when I click on cancel button in workspace. Please do let me know if I am missing here.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2024 12:56 AM
Hello @Simba Naidu ,
In workspace client script add below code
function onClick(g_form) {
g_form.setValue('state', 4);
g_form.save();
}
Please Mark my Solution as Accept and Give me thumbs up, if you find it Helpful.
Regards,
Vaishnavi Shinde