Issue with Submit Button Message Trigger in ServiceNow Order Guide

EricaT_
Mega Contributor

Hello,

 

I have an order guide that contains multiple service requests. I created a client script on the Submit button to display a message after the user submits the request. However, the message is being triggered when the user clicks the Next button instead of after actual submission.

 

Here is the client script. Can someone help?

 

EricaT__0-1779836764724.png

 

2 ACCEPTED SOLUTIONS

Ankur Bawiskar
Tera Patron

@EricaT_ 

your onSubmit is on catalog item and hence when you click Next it shows the message

You want message when Order Guide is about to be submitted?

You will have to clone the OOTB widget, make changes to that new widget, then add that new widget in your page

Too much customization, I won't recommend

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

View solution in original post

@EricaT_ 

it comes from this widget "SC Order Guide"

55.png

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

View solution in original post

5 REPLIES 5

Laveena-Agarwal
Mega Sage

Hi @EricaT_ 

 

Could you please let us know what modifications  you have done in widget to get your script run on "Submit"?