- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2020 01:45 AM
I am trying to create an application with a default view & 2 other views. Suppose I change the view and then try to create a new incident, the incident form should open up in default view only. How can I achieve this ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2020 02:27 AM
Hi Krishna,
Check out the System UI>View Rules
Here you can set the conditions needed.
Let me know how you get on.
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2020 02:27 AM
Hi Krishna,
Check out the System UI>View Rules
Here you can set the conditions needed.
Let me know how you get on.
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2020 02:44 AM
Hi Krishna,
The views will have same or different fields in it.
Also the view rules are used to determine which view to show to the logged in user based on some condition
Can you share the exact issue you are facing?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2020 05:38 AM
Hi,
Create one view rule and do something link in script section
(function overrideView(view, is_list) {
if(current.isNewRecord())
{
answer='Default';//Specify view name
}
else
{
answer='Mobile';//Specify view name
}
})(view, is_list);
mark correct/helpful based on impact.
Thanks,
Dhananjay.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-19-2020 09:53 AM