OK/Cancel buttons not working when the UI page is called with g_modal.showFrame for HR Agent workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2022 05:22 AM
We are calling the UI page 'HR Suspend Dialog' from the UI actions Suspend (HR case) and Suspend case (HR task) with below code:
The page is displayed as expected but the OK and Cancel buttons are not functioning. Nothing happens after we click on OK/Cancel button. Please note that these buttons are working correctly in the native UI. Please advice!
- Labels:
-
Agent Workspace

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2022 05:53 AM
Hello,
Please check 'Suspend case' Ui action and see how it is designed, you will get idea.
Regards
Regards,
Musab

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2022 06:45 AM
Hi Pooja,
Your implementation seems to be correct. There's always some problem occuring with GlideDialogWindow or GlideModalForm after any upgrades. Try setting the client flag on the UI Action to true. This has worked for me.
Hope this works for you as well.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2025 05:55 PM
Pooja exactly I am facing same issue, my ui page Ok nd Cancel button is working in native ui but the butoon is not working in CWS configurable workspace. Did you get a solution?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2025 08:40 PM
Hi Ravi,
Have you tried to create OK/Cancel buttons inside the UI page yet? Because those buttons are not working as in native following this article.
How to use UI Actions in Workspaces
"In the UI Page within the Client Script the following function is being used to handle the Cancel that you may need to use in your UI Pages as the native Cancel functionality does not work. The config to identify the workspace is set in the HTML."