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
yesterday
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!