- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2020 05:07 AM
Hello,
I have created a catalog item to reset the password for user account and when i click on the "Reset Password" button it is not triggering at all.
Reset Password- it is of type UI Page and below is the Ui page screen shot
we have created the script include as follows:
I don't know what is the error the "Reset Password" button on Catalog tem is not triggering and not executing the client script at all, Can anyone suggest me where i went wrong.
Thanks and Regards,
Prerana
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2020 07:58 AM
Hi,
Set this property 'glide.ui.escape_all_script' to 'false' on your instance and the UI Pages will work. You might need to Elevate your roles to set this property to 'false'.
Refer the KB article: https://hi.service-now.com/kb_view.do?sysparm_article=KB0685296
Kindly mark my answer as correct/helpful if it helped in resolving your issue.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2020 11:09 PM
Hello,
Any suggestions on this?
Thanks,
Prerana
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2020 07:35 AM
Hi Prerana,
please remove all gs.log() from client script; it is breaking the code; gs.log() doesn't work in client side
I could see it at line number 4, line 21
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
05-10-2020 06:22 AM
Hi Ankur,
Thanks for your response, I removed gs.log in client script but the button in catalog item is not triggering at all, can you please help me on this?
Thanks,
Prerana
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2020 09:26 AM
Hi Prerana,
Can you share the complete UI page script?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader