- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi Everyone,
- Is it possible to open the new form in a particular view if its created from the "New" UI Action from the related list?
- I have tried to configure list layout of related list and set it to "XYZ" View but when i tried to created New record it opens in Default view.
- I have configured the "view rule" so that if a particular field is not empty it will always open in "XYZ" View. This doesn't work for new record, only existing record.
- I have noticed that if i open a new record in the related list, the URL is has the query related_list=true, can i created a UI action for the related list and set the view using sysparm_view=XYZ ?
- Any suggestion/examples c
Thanks in Advance,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @Chandru SP ,
You need to create an UI Action that can be added to the related list to open the new record in a specific view.
In the script add below,
var url = new GlideURL('incident_form.do');
url.addParam('sys_id', '-1');
url.addParam('sysparm_view', 'XYZ'); // Specify your form view
after this you need to create a View Rules based on your conditions..
If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community.
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @Chandru SP ,
You need to create an UI Action that can be added to the related list to open the new record in a specific view.
In the script add below,
var url = new GlideURL('incident_form.do');
url.addParam('sys_id', '-1');
url.addParam('sysparm_view', 'XYZ'); // Specify your form view
after this you need to create a View Rules based on your conditions..
If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community.
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/