View management
Summarize
Summary of View management
View management in ServiceNow defines which elements appear when a user opens a form or list, allowing users to switch from the default view to other available views. Views display subsets of fields from the underlying table, tailored for different purposes such as self-service or metrics. This functionality helps customize the user interface for specific roles or tasks.
Show less
Key Features
- View Creation and Deletion: Administrators and users with the personalize role can create and delete views for any list or form, enabling customization to meet organizational needs.
- View Switching: Users with admin or viewchanger roles can switch views for lists or forms via context menus. Switching views submits the form, saving changes and triggering relevant client scripts. Note that views cannot be switched on unsaved new forms.
- User Preferences: When a user selects a view, it is saved as a user preference, making that view the default on subsequent openings. This preference overrides views specified in URLs unless the sysparmviewforced parameter is set to true.
- View Rules: Administrators can create rules to control which views are displayed based on field values or user roles. These rules can enforce specific views, overriding user preferences when necessary.
- Base System Views: Several views like Default and Advanced are included out-of-the-box. It is important not to delete these base system views to maintain system integrity.
- Navigation Handler: A scripted view rule that runs whenever data from a specified table is requested in form view, allowing dynamic control over view presentation.
Practical Use for ServiceNow Customers
By leveraging view management, ServiceNow customers can tailor forms and lists to specific user roles and business needs, enhancing usability and efficiency. Admins can create and manage views and view rules to ensure users see the most relevant data presentation. Users benefit from personalized default views that streamline their workflow, while organizations maintain control through role-based and conditional view rules.
A view defines the elements that appear when a user opens a form or a list, and you can switch the view from the default for lists and forms.
When the system displays a form or list it usually displays only a subset of the fields belonging to the underlying table. For example, this is the Incident form in the Self-Service View:
This is the Incident form in the Metrics View:
- create views for any list and form
- determine which view is visible by default
- delete views they have created
- create and modify view rules determining which views are available depending on the values of the fields of the underlying table
- create rules that determine which views pertain to specific user roles
Users with the admin or view_changer roles can change views.
Views included with the base system
Several views are included with the base system, including the Default view and Advanced view.
Switching views
To switch between list views, click the list context menu at the top left corner of the list, and then select .
To switch between the list view in list v3, click the context menu, then select .
To switch between form views, click the context menu at the left side of the form header, and then select :
Switching views submits the form, which saves all changes and triggers any onSubmit client scripts that apply. You cannot switch form views on a new form that has not been saved yet.
When a user switches views, the selected view is saved as a user preference so the user sees the same view by default when the form opens. When a user has a view saved as a user preference and then opens a URL to a record that specifies another view, the form displays in the view saved in the user preference, not the URL. For example, if a user selects the Mobile view on an Incident record and then tries to open the following link, which specifies the visual task board view, the form still opens in the Mobile view: https://{instance}/nav_to.do?uri=incident.do?sys_id={sys_ID}sysparm_view=vtb
The sysparm_view parameter specifies the view to be used for a list or a form, and can be overwritten by a user’s stored preference for a view. You can override this behavior by setting the sysparm_view_forced parameter to true.