GlideModal()

Syed Ibrahim Hu
Tera Contributor

Hi All, 

Is there a way to trigger GlideModal() when I click on close(x) icon on a UI page?

 

I appreciate your help in this.

Thank you!

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@Syed Ibrahim Hu 

what's your business requirement?

you can invoke another UI page on close

what script did you start with?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar ,

 

Thank you for your response.

Business Requirement: When the default close (X) icon in the top-right corner of the modal is clicked, instead of closing the current UI page, a confirmation prompt window should appear with two buttons: Yes and No. FYI, I've created another UI page for confirmation.

Script Issue: I'm unsure which method to call to achieve this functionality. Could you please assist?

Thank you!

@Syed Ibrahim Hu 

please share your complete UI page code.

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Are you talking about the primary page or the page that needs to be invoked once the close is clicked?