Getting error GlideDialogWindow is undefined when used in UI Action with client checkbox selected
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2017 05:05 AM
Hello,
I am getting an error GlideDialogWindow is undefined when used in UI Action with client checkbox selected. I have created a function named openw() in my UI action script which creates an object of it. And this function is called on click. Also I have created an empty UI page named "Set Time Range".
onclick: openw()
Script:
function openw() {
var dialog = new GlideDailogWindow("Set Time Range");
dialog.setSize(400,400);
dialog.setTitle("");
dialog.render();
}
Error which I am getting: "Uncaught ReferenceError: GlideDailogWindow is not defined" in browser console on triggering UI action in my App.
I am following exactly that is written in API reference - Client Side. Please guide me what am I doing wrong.
Thanks.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2017 05:33 AM
OK, sorry about that. Just do a search on Service Portal> Widgets where client controller contains spmodal and you should find some examples.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2017 05:07 AM
Hi Zuber,
Is this error coming for portal page?
Because I think calling UI page in portal doesn't work in scoped app.
GlideDialogWindow in service portal
ReferenceError: GlideDialogWindow is not defined
Mark Correct if this solves your issue and also hit Like and 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
‎12-20-2017 05:12 AM
Ok. Is there a way to provide dialogs in service portal scoped application?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2018 03:43 AM
The GlideDialogWindow API Document says as follows
Note: GlideDialogWindow does not function with List v3. Either use List v2 or the GlidModalV3 API.
https://docs.servicenow.com/bundle/kingston-application-development/page/app-store/dev_portal/API_reference/GlideDialogWindow/concept/c_GlideDialogWindowAPI.html