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

Prerana1
Kilo Guru

Hello,

Any suggestions on this?

Thanks,

Prerana

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

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

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

Hi Prerana,

Can you share the complete UI page script?

Regards
Ankur

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