- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-18-2025 06:24 AM
Hi,
I have form and submit components in my page. For the Submit button added the Form submit event and Redirect event handler to different page. Currently even if form validation fails, it re-direct to /events page. But I want to re-direct only if validation is successful and from is submitted successfully redirect to /events page, otherwise stay on the same page. Looking some help to achieve this.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-18-2025 02:28 PM
For form controller, try setting condition in event handler - try setting up
On, Form submit completed -> Link to destination Relay (Default) event handler with condition "status = success".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-18-2025 01:54 PM
Hi @SundaramR
You can use the client script on this, and add the error messages and on ok proceed further and in cancel back to same page.
https://servicenowguru.com/scripting/stopping-record-submission-servicenow/
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-18-2025 02:28 PM
For form controller, try setting condition in event handler - try setting up
On, Form submit completed -> Link to destination Relay (Default) event handler with condition "status = success".