How to Trigger Popup Only on "Order Now" Click in ServiceNow Order Guide?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
Hi, I need some help.
I have a use case where I need to display a popup message when a user submits a catalog form. This is working fine for catalog items. I created a widget for the popup and called it in an onSubmit client script, and it works as expected.
Now, I need to implement the same functionality for an Order Guide. I tried using the same approach by creating an onSubmit client script for the Order Guide and calling the widget, but it is not working as intended.
In the Order Guide, there are three steps:
- Fill in initial details and click Next
- Enter additional data and click Next
- Finally, the Order Now button appears, which submits the request
The issue is that the onSubmit client script is triggering when I click the "Next" button in the first step, causing the popup to display too early. However, I want the popup to appear only when the user clicks the "Order Now" button.
Can anyone guide me on how to achieve this? Any help would be greatly appreciated. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
order guide is different when it comes to handling onSubmit message
you will have to clone the OOTB widget "SC Order Guide", make changes to that, then add it again on page
Note: I won't recommend this due to heavy customization and technical debt during upgrade
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader