How do I set default view to a new incident being created.

M Krishna Chai1
Giga Contributor

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 ? 

1 ACCEPTED SOLUTION

James Rostron1
Tera Expert

Hi Krishna,

Check out the System UI>View Rules

Here you can set the conditions needed.

Let me know how you get on.

James

View solution in original post

6 REPLIES 6

James Rostron1
Tera Expert

Hi Krishna,

Check out the System UI>View Rules

Here you can set the conditions needed.

Let me know how you get on.

James

Ankur Bawiskar
Tera Patron
Tera Patron

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

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Dhananjay Pawar
Kilo Sage

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.

M Krishna Chai1
Giga Contributor

Hi,

Thank you for all the suggestions. I tried using view rules & set up a condition in that to achieve the default view. I am attaching screenshot of the view rule. 

Regards,

Krishna Chaitanya