Object layouts control the information displayed in the object record detail page and in any PDFs of the object record downloaded by users. You can create multiple layouts for each object and object type. The layout applies in create, edit, or view mode. Objects with multiple object types can use a different layout for each type.
You can use object layouts for multiple purposes. For example, a manager may want to see certain sections and fields on a Complaint record while another employee only needs to see certain fields and sections relevant to their processes. You could also create a different layout for each state in an object’s lifecycle. You can accomplish this level of customization by creating object layouts, assigning them to a layout profile, and then assigning the profile to a user.
By default, layouts include sections for the object record fields, attachments, and sharing settings. By configuring layouts to show related object records and related documents, the record detail page becomes the central location for browsing, creating, and editing related information. In addition, you can group similar sections of a layout into individual pages for organization purposes.
Note: Each object and object type allows up to 50 custom layouts. This limit does not include standard and system-created layouts.
Configuring Object Layouts Demo
See below to watch a video tutorial on how to configure object layouts in Vault.
How to Access Layouts
To open and edit an object’s layout, navigate to Admin > Configuration > Objects > [Object] > Layouts. The Layouts tab displays a list of each layout available on the object. By default, one layout is available for each existing and new object and object type. An Object Type column displays if the layout is applied to an object type.
You can also open a layout from within an object record detail page. From the Actions menu, select Configure Layout. If you’re viewing a record that belongs to an object type with its own layout, you will see the layout for that object type.
How to Create an Object Layout
To create a new object layout:
- Navigate to Admin > Configuration > Objects > [Object] > Layouts.
- Click Create to open the Add Layout window.
- In the Add Layout window, select an object type. Vault asks for an object type only if one e exists on the object.
- Enter a value in the Layout Label field.
- Enter a value in the Layout Name field.
- Optional: Enter a Description for the layout.
- Set the layout as Active or Inactive under the Status drop-down.
- Click Done.
The page will refresh and direct you to the Layout Editor.
Note: You cannot create a layout for an inactive object or object type.
Set a Default Layout
When an object or object type is created, Vault assigns the initial layout as the default. Once you add layouts, you can change the default to any layout in the list. The default layout is identified by a green check mark on the Layouts tab.
To change the default layout, select Set As Default from the layout’s Actions menu on the Layouts tab.
If the user is not assigned a layout profile, this is the only layout they will see when accessing the record detail page. If you don’t apply a layout to an object type, it uses the base object type’s default layout as its layout. However, object types are not required to have any layout.
Delete a Layout
To delete a layout, select the layout’s Actions menu on the Layouts tab. Then, select Delete. Vault removes the layout from the list on the Layouts tab.
Vault displays a warning if the layout is assigned to a layout profile with assigned users. If you continue with deletion, those users will lose access to the layout.
You cannot delete or inactivate the default layout on objects and object types.
Copy a Layout
Vault allows you to reuse layout configurations with the Copy action. To copy a layout:
- On the Layouts tab, select Copy from a layout’s Actions menu.
- Optional: Change the values in the Copy Layout window, such as the object type, label, and status.
- Click Done to create the copied layout.
Vault directs you to the Layout Editor for the copied layout.
Layout Priority
Vault uses the following priority structure to determine the layout a user sees when they access the record detail page:
- Layout URL: Each layout has a specific URL that users can bookmark and share. Vault will always first respect the layout’s URL when a user views the record detail page.
- Focus On Layout Rule: If a Layout Rule using the Focus On effect is in place, Vault defaults to the layout with this rule. This scenario happens only if the user accesses the record detail page without using the bookmarked URL and a Focus On rule is in place.
- Last Used Layout: If a Focus On layout rule is not in place, Vault defaults to the last layout used when the user accessed the record.
- First Layout in Profile: If there is no Focus On layout rule and no last used layout, Vault defaults to the first layout in the user’s layout profile.
- Default Layout: If no layout profile is assigned to the user, Vault uses the default layout on the object or object type.
Using the Layout Editor
To edit an object layout, click the layout’s label in the Layouts tab. You can also edit a layout after clicking Done on the Add Layout window. Both options direct you to the Layout Editor where you can add, edit, and delete sections and pages and apply layout rules.
The Layout Editor displays sections in the middle of the page and sections and pages in the left navigation panel. Use the navigation panel to navigate to sections and pages without scrolling and to reorder sections and pages as needed.
Sections
Each object layout can have up to 30 sections. You can add sections anywhere within the layout. By default, a Details section displays when you first access the Layout Editor. On default layouts, this section contains all new fields, including required and optional fields. On non-default layouts, this section contains only required fields. You cannot delete the Details section if it contains required fields. However, you can hide it with a layout rule if necessary.
Note: Sections and fields with a layout rule are denoted by an fx icon. Click the fx icon to view the Layout Rules list page filtered by rules that affect your selection. For example, if you click the fx icon on a field, the Layout Rules list page shows all fields with a layout rule.
How to Add Sections
To add a section:
- Hover your cursor in the empty space above or below a section until a blue plus icon appears.
- Click the blue plus icon.
- In the drop-down menu, select Insert Section.
- Select the section type in the Select Section Type window.
- Click Continue.
- Complete the next window based on your chosen section type. See detailed instructions for each section type below.
- Click Done.
Vault inserts the section in the order you selected. You can also add sections from the left Navigation Panel. To do so:
- Click the Actions menu that displays to the right of the section’s label.
- Select Add Section.
- Select the section type in the Select Section Type window.
- Click Continue.
- Complete the next window based on your chosen section type. See detailed instructions for each section type below.
- Click Done.
Vault adds the section directly after the currently selected section. If you add a section from a page’s label, Vault adds the section at the bottom of the sections in that page.
Section Types
You can add multiple types of sections to a layout:
- Detail Forms: Contains labels and values for selected object fields. Can also contain Help Controls to inform and instruct users.
- Help Section: Contains help content for users in a designated section. For example, you can add instructions on how to complete a record, or communicate circumstances where users should create a different type of record.
- Related Object Section: Allows users to view and create related object records.
- Related Document Section: Allows users to add and view related documents.
How to Add Detail Forms
To add a Detail Form section:
- Select Detail Form from the Select Section Type drop-down menu.
- Click Continue.
- Enter a Section Label and Section Name. Only the label will appear for users.
- Choose a Section Layout: Detail Form - One Column or Detail Form - Two Columns.
- Optional: In the Show the section only in these lifecycle states drop-down menu, select one or more lifecycle states. This option only appears for objects that use lifecycles.
- Optional: Add instructional or informational text in the Section Help field. When users view the object record, they can see this information by clicking the ? icon on the section heading.
- Click Done.
Object Fields
From the Layout Editor, you can add, remove, and change the orientation of fields, and define their behavior on the page layout. If a Details Form section on the layout has no fields, Vault hides the section from users in the object record detail page. Click Save when you are finished editing fields and sections.
How to Add Object Fields
You can add fields from a section by clicking + Add in the Detail Form section and selecting a field from the drop-down. The drop-down menu includes all available object fields that are not already displayed in a Detail Form section. You cannot add the same field to multiple sections.
You can also add fields using the Add to Layout button on the Fields tab (Admin > Configuration > Objects > [Object] > Fields > [Field]). Selecting this option adds the field for selection in the Detail Form section.
Note: Adding the Lifecycle Stage (stage__sys
) and Lifecycle State Stage ID (state_stage_id__sys
) fields to any object page layout may result in a Vault Compare difference.
How to Remove Object Fields
To remove a field, click the Delete (x) icon to the right of the field’s panel. This moves the field back to the Add drop-down. You can remove a required field if it has an object field default configured, or if it is a system-managed object record name field.
How to Move & Orient Object Fields
To move a field, click the field panel, and then drag and drop it to its new position. You can move fields from one Detail Form section to another.
To add a space between fields, click the Add icon and select Space from the drop-down. After adding, you can move the spacer between fields.
How to Define Object Field Behavior
From the Layout Editor, you can define whether an object field is required or read-only by clicking the pencil icon next to the right of the field’s panel. In the dialog, select Display as Required or Display as Read-Only.
Within the Layout Editor, required fields are denoted by an asterisk next to their label and a yellow highlight. Read-only fields are shaded grey to distinguish them from editable fields.
Note: If you select both Display as Required and Display as Read-Only for a particular field, the user will not be able to edit the required field. Within the Layout Editor, fields indicated as both are shaded grey and have an asterisk next to their label.
Help Sections, Help Controls, and Record Summary Fields Demo
See below to watch a video tutorial on creating Help Sections, Help Controls, and Record Summary fields.
How to Add Help Controls
Help Controls are special areas within a section that display help text to users when they create, view, or edit object records. To add a help control within a detail form section:
- Click the Add icon and select Help Control from the drop-down.
- Optional: Edit the Label that users will see on the object record detail page.
- Optional: Add text in the Help field for users to see when hovering over the help control label.
- Enter the help content in the Content field. You can use Vault’s bulk translation tool to translate the help text into any language Vault supports.
- Optional: To omit the label, including its associated hover text, select the Display Content Only checkbox.
- Click Done.
After adding a Help Control, you can move it between fields. For example, you can place instructions for a field directly above that field. You can add multiple Help Controls to a detail form section.
How to Add Help Sections
Help Sections display help content to users in a separate section. To add a help section:
- Select Help Section from the Select Section Type drop-down menu.
- Click Continue.
- Enter a Section Label and Section Name. Only the label will appear for users.
- Optional: In the Show the section only in these lifecycle states field, select one or more lifecycle states. This option only appears for objects that use lifecycles.
- Optional: Add instructional or informational text in the Section Help field. When users view the object record, they can see this information by clicking the ? icon on the section heading.
- Enter the help content in the Content field. You can use Vault’s bulk translation tool to translate the help text into any language Vault supports.
- Optional: Select Display Section on Create to display this section anytime users create a record on the object.
- Click Done.
How to Add Related Documents Sections
To add a section showing related documents:
- Select Related Documents from the Select Section Type drop-down menu.
- Click Continue.
- Select the Referencing Document Field. This must be an Object field configured on one or more document types.
- Enter a Section Label and Section Name. Only the label will appear for users.
- Optional: In the Show the section only in these lifecycle states field, select one or more lifecycle states. This option only appears for objects that use lifecycles.
- Optional: Add instructional or informational text as Section Help. When users view the object record page, they can see this information by clicking the ? icon on the section heading.
- Optional: Select the Prevent Document Addition to prevent users from adding new documents. Enabling this setting overrides any atomic security configurations and user permissions.
- Optional: Apply Criteria VQL to restrict the documents that users can add using a VQL-type expression. You can use the Token Helper icon to search for relationship and field keys to add to the expression. Click Validate to confirm if your criteria VQL syntax is valid.
- Click Done.
How to Edit Related Document Columns
The default columns displayed for related documents include the document name, number, type, subtype, classification, and status.
You can show or hide columns for any field configured on the documents. You can also arrange the left to right order of columns displayed.
- In a Related Documents section, click Edit Columns.
- In the Select Columns to Display window, select available fields to show.
- To arrange the left to right column order, move selected fields up or down in the list.
- Click Done.
When you’re finished editing columns, click Save.
How to Add Related Object Sections
To add a section showing related object records:
- Select Related Object from the Select Section Type drop-down menu.
- Click Continue.
- In the Add Related Object Section window, select a Related Object in your Vault.
- Enter a Section Label and Section Name. Only the label will appear for users.
- Optional: In the Show the section only in these lifecycle states field, select one or more lifecycle states. This option only appears for objects that use lifecycles.
- Set the Creation Option: You can prevent users from creating new object records with the Prevent record creation option or allow users to create new records in a new page or in a pop-up window.
- Optional: Add instructional or informational text as Section Help. When users view the object record page, they can see this information by clicking the ? icon on the section heading.
- Optional: Add Criteria VQL to restrict the objects that users can see and add using a VQL-type expression. Use the Token Helper icon to search for relationship and field keys to add to the expression. Click Validate to confirm if your criteria VQL syntax is valid.
- Optional: Select the Apply on Create checkbox to apply the criteria VQL as default when users create new records.
- Click Done.
Note: Related object sections are available for any object related through an inbound relationship (child objects, referring objects, and objects related through a join relational object).
How to Edit Related Object Columns
The default columns displayed will vary between objects, but you can show, hide, and rearrange columns for any object field.
- In a Related Objects section, click Edit Default Columns.
- In the Select Columns to Display window, select fields to show. You can double-click a field or select and use the left/right arrow buttons to add columns.
- To rearrange columns, select a field and use the up and down arrow buttons.
- Click Done.
- When finished editing columns, click Save.
Note: Depending on when your RIM application Vault was created, you may see that the section for related object Packaging Shelf Life on your Packaging object page layout has two Name columns. This can cause server errors when modifying relationships to the packaging object. To resolve, simply remove and re-add the Packaging Shelf Life section to your page layout.
System Sections
System sections display by default based on the object’s configuration. You can delete Workflow Timeline, Attachments, and Signatures if needed. These sections include the following:
- Workflow Timeline: This section displays if an active workflow exists on the object. You can move or delete this section as needed. If there are multiple pages, only one page can contain the Workflow Timeline section. If this section is removed while a workflow is active, a warning will display.
- Attachments: This section displays only if the Allow Attachments checkbox is selected on the object’s Details tab. If Allow Attachments is unselected at a later time, the Attachments section will remain but display at the bottom of all sections in a pageless layout or at the bottom of the first page with sections.
- Signatures: This section displays only if Enable Signatures is selected on the object’s Details tab.
- Sharing Settings: This section displays if Enable Matching Sharing Rules is enabled on the object. You cannot edit or delete this section if it’s available. It will always display at the bottom of the layout.
Pages
The Layout Editor allows you to organize sections into individual pages. Each layout allows up to 10 pages. You can add or remove sections from pages as needed. If you add one page with sections, Vault adds any remaining sections to an untitled page.
You can save a layout if a page contains no sections. However, Vault will warn you about the empty page and remove it if you continue with saving.
How to Add Pages
To add a page:
- Hover your cursor in the empty space above or below a section until a blue plus icon appears.
- Click the blue plus icon.
- In the drop-down menu, select Insert Page.
- Vault creates the page and adds any sections after the blue plus icon to the page. Change the default Page label to a new label in the left panel.
If there is a page or no sections after the space where you insert a new page, Vault will create an empty page with no sections.
To add a page from the left navigation panel:
- Select the Actions menu to the right of a section or page label.
- Select Add to Page on a section’s label to add a page with the selected section. Or select Add Page on a page’s label to add an empty page after the selected page.
- Change the default Page label to a new label in the left panel.
To edit a page’s name, click its Actions menu. Then, click Edit. You can change the Page Label and Page Name. The Page Name is not visible to users and you cannot duplicate it in a layout.
How to Add Sections to a Page
To add sections to a page in a layout with no pages:
- Hold Ctrl (Command on Mac) on your keyboard and select each section in the left panel that you want to add to a page.
- Click the Actions menu on one of the selected sections.
- Click Add to Page.
- Vault adds your selected sections to your new page. Vault adds any leftover sections to another page with the default Page label. Change the default Page label to a new label in the left panel.
If pages already exist in the layout, you can use the above method or click and drag a section in the left panel to a desired page.
Note: You cannot multi-select and drag and drop pages.
How to Edit Sections and Pages
To edit a section name, label, or type, click the Edit icon to the right of the section. Or select Edit Section from the section’s Actions menu in the left panel.
To edit a page name or label, select Edit from the page’s Actions menu in the left panel.
How to Remove Sections and Pages
To remove a section, click the Delete (x) icon to the right of the section. Or select Delete Section from the section’s Actions menu in the left panel.
To remove a page, select Delete Page from the page’s Actions menu in the left panel.
You cannot use the Delete Page option if only one page exists in the layout. To remove all sections from all pages, select Remove Pages from the layout’s Actions menu.
How to Move Sections and Pages
To move a section or page, click and drag the label to its new position in the left panel.
How to Add Text Sections
If an object includes at least one Long Text or Rich Text field, you can add those fields as text sections to the object’s page layout. To add a section showing the field:
- In the Layout Editor, click Add Section.
- Select Text.
- Enter a Section Label and Section Name. These fields do not appear for users.
- Select a Long Text / Rich Text Field.
- Optional: In the Show the section only in these lifecycle states field, select one or more lifecycle states. This option only appears for objects that use lifecycles.
- Optional: Add instructional or informational text as Section Help. When users view the object record page, they can see this information by clicking the ? icon on the section heading.
- Click Done.
The Text option only appears in the Add Section dropdown menu for objects that have Long Text or Rich Text fields.
About Web Sections
You can use web sections to display external web content, such as an address’s map location on an Organization record. At this time, you can only add web sections to object page layouts through MDL. If your page layout includes a web section, you will see it in the Layout Editor, and you can move it to a different position on the page, but you cannot make any other changes. Learn more about adding web sections on the developer portal or contact Veeva Services for assistance.
Trip Report Questions Sections (CTMS)
The Trip Report Questions section-type is only available for the Monitoring Event object in CTMS application Vaults. For details about adding sections to show trip report Questions, see Trip Report Administration (CTMS).
Lifecycle State Details
Selecting lifecycle states when setting up a new section creates a layout that changes for records in different states. This option is only available when the page layout belongs to an object with an active lifecycle.
Filter Related Object & Documents Sections
You can add filters to related objects and documents sections using VQL-type expressions to constrain what specific documents appear in those sections for users to select. For example, you can restrict users from adding related documents that aren’t in a Steady state.
Vault applies all filters that you configure when users access the relevant related object sections on object records, but only displays fields that users have Read permission on.
Users must have Read permission on all fields used in the filter in order to access the relevant related documents section on object records. On related document sections, users will not see any results if they do not have Read permission on all fields used in the filter.
Filters on document and object sections do not support full VQL functionality.
Note: As of 21R2, you can control object and document filtering for a section with VQL-type expressions in the Criteria VQL section. Prior to 21R2, you could apply individual filters for related objects.
Apply Field Defaults to Related Record Creation
Users can potentially create records that will not show up in the related object section if those created records fall outside of the filters defined for the section. For example, if you filter a related object section to show Inactive records, any Active records that a user creates from that section will not appear in the related list.
To help avoid this, enable the Apply on Create option when configuring a related object record section. This option applies the Criteria VQL filter as a field default on the newly created record. For example, if you filter a related object section to show Inactive records, the Apply on Create option will automatically set the Status field to Inactive for all records created through this related object section.
Apply on Create can only apply field defaults for Criteria VQL expressions with the =
operator. Other operators and expressions are ignored. For example, the expression status__v = 'inactive' AND name__v != 'CholeCap'
will default Status to Inactive, but cannot set a default value for Name as there is more than one value which could fulfill this criteria.
Preventing Related Creation
Users can potentially create records that will not show up in the related object section if those created records fall outside of the filters defined for the section. For example, if you filter a related object section to show Inactive records, any Active records that a user creates from that section will not appear in the related list. To avoid this, enable the Prevent record creation option when configuring a related object record section. This option hides the Create or Add button, depending on the object relationship.
Related Permissions
To work on object configuration, you must have a security profile that grants Admin: Objects permissions.