A ServiceNow form view is a named layout for a table’s record form. Create or duplicate a view, select it before editing, and save its fields, sections and annotations. Use view rules when a layout must apply under defined conditions; distinguish those shared changes from one user’s personal form preferences.
What a form view controls
A form view sets the elements that appear when a user opens a form. The platform usually displays a subset of a table’s fields, and the view determines which subset. Each form starts with a default view, which you can change for everyone who opens the form. You can also create further views so that different user groups see different layouts.
Each table and view combination is its own form with its own sections and fields. The incident table, for example, has one form for its default view and a separate form for each additional view. The platform ships with base system views, including Default and Advanced, and you should not delete them.
Administrators and users with the personalize role can create views for lists and forms and delete views they created.
Creating and selecting views in Table Builder
Open Table Builder and go to the Forms tab. The procedure requires the personalize_form role, or the AES user role together with delegated developer permissions. The Default view is selected first, and the View list lets you switch to another view.
To add a view, choose Add new form view from the View list or from the Additional actions menu, the vertical ellipsis beside the Forms tab. The same menu offers Duplicate this form view, the route for customizing an existing view.
For a table with many views, choose All form views to filter and sort a large list of views.
Adding fields, sections and annotations
With a view selected, open the Fields list in the Add form elements panel and drag a field into the form editor where it should appear. Select Save when you finish. To take a field out of the view, click the x icon beside it in the editor.
Some field types are supported only in Core UI, and the Fields list flags an unsupported type with an exclamation icon. To create a new column, select + Add a field in the table, then enter a Column Label, an internal Column name and a Type. The new field appears at the top of the Fields list. Select Add to create the column, then drag the new field onto the form editor. If a field cannot be removed, its table may belong to a different scope.
Annotations add instructional text. Select Annotation in the Components list and drag it into position. Info Box Blue and Info Box Red draw a blue or red box around the text, Line Separator draws a line inside a section, and Section Separator draws a line between sections. For the text itself, choose Plain text or Rich text. Select Save after entering the annotation text.
Form layout, form designer and Form Builder
Form layout, form designer and Form Builder can configure form views. Form Builder includes all of the options in the form designer and the form layout editor, so it is the editor to start with for new form work.
Form Builder opens from the Forms tab in Table Builder, from the form context menu under Configure, from the Related Links section of any table, or from the Edit Form button in UI Builder. In UI Builder, the form component needs Table and View values before Edit Form is available. Your changes appear on the form after you close Form Builder.
In the form layout editor, open the form context menu, choose Configure, then Form Layout. The role required is personalize_form. Move fields from the Available list to the Selected list, reorder them there, and select Save.
Related lists are set from Configure, then Related Lists, and they appear at the bottom of the form. In the form layout editor, annotations are placed by selecting a section under Form view and section and moving the Annotation item into the Selected list. Choose Plain Text or HTML as the data type.
The form designer opens from an existing form through the Additional actions icon, then Configure, then Form Design. It requires Core UI and the personalize_form role. Starting with Australia, form designer is being prepared for future deprecation; check editor availability on your instance and release. Upgraded instances must activate the Form Designer plugin, com.glide.ui.ng.fd. Its page header names the table and view being designed, and adding a field type creates the matching field in the table when the layout is saved.
Switching views and what a switch saves
Users with the admin or view_changer role can change views. Switching submits the form, which saves all changes and runs any onSubmit client scripts that apply. You cannot switch views on a new form that has not been saved yet.
When a user switches views, the chosen view is stored as a user preference, so the form opens in that view next time. The stored preference takes precedence over the sysparm_view parameter in a link. A user who chose the Mobile view on an incident record still sees that view when a link asks for another. Setting sysparm_view_forced to true overrides the stored preference.
Personalizing a form for one user
In Core UI, when form personalization is activated, Personalize Form changes a specific form view for one person. The roles that can use it are itil, personalize_form and admin. Open any record, select the personalize form icon in the form header, and clear the check box beside a field to hide it. Click outside the menu to save. Reset restores the default form view.
Personalization cannot change the order of fields, add a field the form does not display, or hide a mandatory field. A cleared gray check box marks a field you hid earlier. A selected gray check box marks a field that cannot be hidden, because it is required or a UI policy or client script hides it.
An admin can change access to form personalization through the glide.ui.personalize_form.role system property, specifying the roles in its Value field.
Forcing a view with a view rule
A view rule overrides the saved preference and forces a specified view. The role required is admin. Go to All, then System UI, then View Rules, and select New. The form includes these fields:
- Name: Identifies the rule.
- Active: Applies the rule when its conditions are met.
- Advanced: Replaces the condition builder with a Script field and hides Match Conditions, Conditions and View.
- Match Conditions: Sets whether Any or All of the conditions must be met.
- Conditions: Decides when the view applies.
- Table: Lists tables and database views in the same scope as the rule.
- Device type: Selects the interface where the rule applies.
- View: Names the view to force. The field is case-sensitive and must match the view name exactly.
Select Submit to save the rule. Application identifies the application that owns the rule. For an advanced rule, use Script to determine when the specified view should appear.
Admins can also create rules that decide when a form or list appears in a given view, and can restrict views by user role. A navigation handler is a scripted view rule that runs each time data from its table is requested in the form view.
A view rule may not apply while user preference entries exist on the instance. The fix is to delete the user preference entry and clear the system cache by appending cache.do to the instance URL. Clearing the cache can slow response times, so do not run cache flushes during business hours, and do not trigger them automatically.
Check the selected view before rollout
Changes in the Table Builder editor are committed to the selected view. Before moving a field, check the view name and table together. Review the default layout separately from the alternate layout so a change intended for one group does not accidentally replace the starting layout for everyone.
For a long view list, use All form views to search by keyword, sort by form name or update information, and apply filter conditions with AND/OR logic. This is a way to locate an existing layout before creating another view with the same purpose.
Test with a saved record and the intended user’s preferences. Check field placement, annotation visibility, related lists and the result of switching away and returning. If an element seems missing, compare the configured layout with that user’s personalization before adding another field or changing a rule.
For help planning this work, see ServiceNow implementation.
Questions about alternate form layouts
Can the same editable field appear in two sections?
Avoid that layout. Multiple editable copies of a field can cause data loss and interfere with UI and data policies. The exception is a field displaying read-only data. Review sections together before saving, especially when moving fields between them.
Why did reordering Work Notes in Form Layout have no effect?
In Core UI, Form Layout does not control the order of Additional Comments and Work Notes. Treat that symptom as an activity configuration issue rather than repeatedly rearranging the same fields in the Selected list.
Can users hide instructional annotations?
In Core UI, users can toggle annotations without a required role. Open the more options icon to access the annotations icon. It is light gray and unavailable when the form has no annotations. The glide.ui.show_annotations user preference controls annotation visibility.
When are edits in an embedded list saved?
Changes to an embedded list are saved with the form. Include an embedded-list edit in acceptance testing so the reviewer checks both the parent record and the related data after saving.