Client script can't find my UI page

lightblu
Mega Expert

Hi,

I am referencing a UI page in my catalog client script. However, the client script (using GlideDialogWindow) cannot find my UI script for some reason.

Here is my catalog client script:

find_real_file.png

And here is my UI page that it is looking for:

find_real_file.png

Whenever I click the submit button on my record producer to trigger my catalog client script, a "page not found" window flashes up for a brief second.

I'm just trying to do what they do here:

GlideDialogWindow - Terms and Conditions Acceptance Page - ServiceNow Guru

Thanks for the help!

1 ACCEPTED SOLUTION

Chuck Tomasi
Tera Patron

See the name in the "Endpoint" field? Use that (minus the .do)



find_real_file.png



Best practice is to use underscores in the page name instead of spaces (mentioned earlier.) The endpoint is really the part that matters though.


View solution in original post

8 REPLIES 8

Matthew Glenn
Kilo Sage

Try removing the spaces in the name of your UI Page and update your Client Script accordingly.


Tried that, no luck. The problem is I'm not sure how to debug this.


I believe this is the issue of application scope. From which application scope are you trying to access this UI page?


Hi Lightblu,



You have to pass end point name of the UI page in GlideDialogWindow( i.e scopename_Name of UI page) i.e go to the UI page and check for end point field. Now copy the same and pass this as parameter in GlideDialogWindow.


Please let me know if you have any questions.