UI action not redirecting to current page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2022 10:11 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2022 10:34 PM
Hi,
Since you are calling the UI page you can make the UI action only client side and don't use server side code
Inside the UI page processing script you know the record sysId; you can redirect from processing script itself
something like this in processing script
var urlOnStack = gs.getSession().getUrlOnStack();
response.sendRedirect(urlOnStack);
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2022 01:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2022 07:09 AM
Hi,
line 1 is not required.
I hope you are using g:ui_form to submit the form then only processing script would run
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2022 01:50 AM
Seems to be a similar problem addressed here: LINK
Please mark helpful/correct if it helped resolve your query.
Thanks,
Saji