Open a specific view on click of New button from related list
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-16-2023 09:58 AM
Hi
I am a starting to learn SN and am trying to solve for the following requirement - When the user clicks on the New button on the related list within my form, it should open a specific view if the Type field is set to a particular value. I think I have to use script to do this, but not sure where to write the script and what the code would be.
Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-16-2023 12:09 PM
Hi Sayali,
Thread already has a solution. Also, Yes, your understanding is correct. You need to script it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-16-2023 12:23 PM
Thanks! I am a bit unsure where to place that script that's provided in the other thread... is the script going to be on a UI Policy that's written on the table that's the related list? or is it on the view rule for the table which is listed in the related list?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-16-2023 12:36 PM
Hi Sayali,
It is onLoad() client script.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-16-2023 12:48 PM
Thanks for marking comments helpful. If you got, what was expected please close the thread by marking appropriate answer correct.