Password reset Automation catalog item

Prerana1
Kilo Guru

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.

find_real_file.png

Reset Password- it is of type UI Page and below is the Ui page screen shot

find_real_file.png

we have created the script include as follows:

find_real_file.png

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

1 ACCEPTED SOLUTION

Community Alums
Not applicable

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!

View solution in original post

12 REPLIES 12

Hi Prerana,

I would like to understand the business use-case or requirement for this

You are giving users capability to reset password for Requested For user by clicking the button.

But will they be submitting the Request?

If yes then you can reset the password once RITM is submitted

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hello Ankur,

Thank you for your response, our client requirement is to automate the process of password reset and above issue( button in ui page is not triggering) is fixed by making the property 'glide.ui.escape_all_script' to 'false'. 

 

Thanks and Regards,

Prerana

Hi Prerana,

Glad that it helped. I just tried to understand the business use-case.

If you are not allowing user to submit the catalog then you can hide the Add to Cart and Order Now button

Also what happens if they don't click the Button and instead click the Order Now

Your scenario would fail

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Community Alums
Not applicable

Hi,

Can you confirm one thing? Right click on your catalog item page > Inspect > Open Console Tab > Refresh your page and click on 'Reset Password' again. Do you get any error such as "Uncaught ReferenceError: reset is not defined" ?

find_real_file.png

find_real_file.png

 

Hello Shruthi,

Thanks for your response. I am getting the below error, can you please help me on this.

find_real_file.png

Thanks,

Prerana