OK/Cancel buttons not working when the UI page is called with g_modal.showFrame for HR Agent workspace

Pooja Kulkarni
Tera Contributor

We are calling the UI page 'HR Suspend Dialog' from the UI actions Suspend (HR case) and Suspend case (HR task) with below code:

find_real_file.png

 

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!


find_real_file.png

4 REPLIES 4

Musab Rasheed
Tera Sage
Tera Sage

Hello,

Please check 'Suspend case' Ui action and see how it is designed, you will get idea.

Regards

Please hit like and mark my response as correct if that helps
Regards,
Musab

Bhaba
Tera Expert

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.

Kalanidhi Ravi
Tera Contributor

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?

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."