Setting different view on a Related List on a Form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2021 10:28 AM
Is it possible to set a different view for the "Related Links" of the form without using "View Rule"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2021 11:13 AM
You can switch to view using the below code in your related link UI action upon onClick
action.setRedirectURL('"table.do?sys_id=" + current.sys_id + "&sysparm_view=your custom view&sysparm_view_forced=true";
you can follow this as well
https://servicenowguru.com/scripting/client-scripts-scripting/change-form-view-client-script/
please mark my answer as helpful/correct, if applicable
Regards,
Sai Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2021 12:26 PM
sorry it's not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2021 12:33 PM
can you plz share the script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2021 01:41 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-06-2021 01:51 AM