Close button on questionnaire in workspace is not working for exceptions/false positives

akash pawar
Tera Contributor

Issue with Closing Nested Modal iFrame in Workspace
Close button on questionnaire in workspace is not working for exceptions/false positives

We are encountering an issue with the UI Action named "Request Exception" on the IT Remediation Workspace . When the UI Action is triggered, a Modal window appears. Inside this dialog, there is a "Request Exception" button that triggers the Take Question UI page.

Previously, there was a cross ("X") button in the top-right corner of the Modal window that allowed users to close the dialog without submitting the form. However, we have removed this cross button and now need to close the dialog overlay programmatically after the form is successfully submitted (i.e., after the user clicks "Submit").

The challenge is how to close the Modal in which iFrame is called to take the survey only after the submission. Is there a way to do this using a script or another way in UI Builder ServiceNow?

We tried Methods:
// window.parent.GlideOverlay.close(); // This methods work for instance view not in the Workspace
// location.reload();
// window.location.reload();
// window.close();
// gm.destroy();
// GlideDialogWindow.get().destroy();
// getTopWindow();
// reloadWindow();
// window.opener.location.reload();
// closeModal();
// GlideModal().get('questionnaire_modal').destroy();
//window.top.close();

0 REPLIES 0