- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-21-2016 07:25 AM
UI action script when click on "Back" button, it should redirect to table's list of records.
Any suggestions please...
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-21-2016 07:27 AM
Use this line to redirect to the list
var url=current.getTableName()+'_list.do';
action.setRedirectURL(url);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-21-2016 07:27 AM
The UI actions have a statement you can include
action.setRedirectURL() where you can put a record (e.g. current) or a URL to bring it to a predetermined destination. It does not control the behavior of the back button.
http://wiki.servicenow.com/index.php?title=UI_Actions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-21-2016 07:52 AM
Thanks for the help.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-21-2016 07:27 AM
Use this line to redirect to the list
var url=current.getTableName()+'_list.do';
action.setRedirectURL(url);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-21-2016 07:30 AM
there is a return url parameter you can set.. the same as a redirect url.. this controls where the back button should take y ou