How to implement modal Popup and how to call that one through client script?

Subhashree3
Giga Contributor

Hi All,

Can you please let me know how to implement Modal popup in Servicenow and how we can call that modal popup from client script?

Thank You.

6 REPLIES 6

k chaitanya kum
Giga Contributor

Hello,

You can use this one in client script var gdw = new GlideDialogWindow(UI page name);

Regards,

Chaitanya Kumar. 

Hi Chaitanya,

 

I tried above code but it seems that GlideDialogWindow doesn't work in Service Portal. I am getting ReferenceError: GlideDialogWindow is not defined

Is there any other way to call the UI page or implement the modal popup?

Thanks.

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Subhashree,

 

GlideDialogWindow is not supported in portal

for using in portal use this

GlideModal -> https://developer.servicenow.com/app.do#!/api_doc?v=istanbul&id=r_GMODV3-GlideModal_S_B_N_N

https://serviceportal.io/modal-windows-service-portal/

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

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

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Subhashree,

Any update on this?
Can you mark my answer as correct, helpful if you were able to achieve the requirement. This helps in removing this question from unanswered list and helps users to learn from your thread. Thanks in advance.

Regards
Ankur

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