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

Abhinay Erra
Giga Sage

Seems like the page is not called. Make sure the UI page name is same as the parameter provided in GlideDailogWindow(). Moreover this should be configured onLoad not on submit.


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.


That worked, thanks. I wasn't deleting the .do at the end. Thanks for the help.



However, the ui page is transparent, how do I make it not transparent? I tried making the div opacity = 1.0, didn't work.


find_real_file.png


find_real_file.png


I've never seen a GlideDialogWindow render transparent. Neat!



Do other pages do the same thing? You might be able to narrow it down to the UI page or the client script.