How to implement modal Popup and how to call that one through client script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2019 05:05 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2019 05:18 AM
Hello,
You can use this one in client script var gdw = new GlideDialogWindow(UI page name);
Regards,
Chaitanya Kumar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2019 05:37 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2019 07:16 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-26-2019 12:06 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader