Issue with Submit Button Message Trigger in ServiceNow Order Guide

EricaT_
Kilo 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

 

1 REPLY 1

Tanushree Maiti
Giga Patron

Hi @EricaT_ 

 

Option 1Create onSubmit script to the specific Catalog Item(s) within the Order Guide instead of writing it in order guide.

 

Option2: You can try with

  • Create an async or after , Insert BR on sc_req_item table.
  • Use gs.addInfoMessage()  to display the message to the user after the records are successfully inserted

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin: