Set Return URL as URL parameter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2016 06:09 AM
When creating new module - is it possible to set redirect URL as URL parameter?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2016 06:14 AM
You could update the UI Action to instead "setReturnURL()" Below is an example.
action.setRedirectURL(change); <--Change is the record we just created from another task table
action.setReturnURL(current); <-- Current is the record you want to come back to once you're done on the change record.
Check out Difference between setRedirectURL() and setReturnURL()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2016 06:28 AM
as I said - I want to achieve tihs without editing UI Action

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-15-2017 06:14 AM
Hi,
I know that this answer comes very late. And I can only answer that because I stumbled over the solution to this:
1. in your URL you have to add a parameter that contains the return URL ex.: '...&sysparm_redirect_url='+current.getTableName()+'.do?sys_id='+current.getUniqueValue()
2. get the parameter in your UI Page:
<input type="hidden" id="signature_redirect_url" name="signature_redirect_url" value="${sysparm_redirect_url}"></input>
3. in the UI Page processing script add something like:
if (signature_redirect_url)
response.sendRedirect(signature_redirect_url);
else ...

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-14-2017 10:14 PM
Hi,
Good Day
can you please try with the below code :
action.setReturnURL(current);
Thanks,
Priyanka R