Create a view rule

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. You can override this functionality to force a specified view to be used.

Before you begin

Role required: admin

About this task

View rules do not apply to users who have no role.

Procedure

  1. Navigate to System UI > View Rules.
  2. Click New.
  3. Complete the form.
    Table 1. View rule form
    Field Input value
    Name Specify an identifying name for the rule. This field is case-sensitive and must match exactly the view name.
    Active Select this option to apply the view rule according to the conditions you specified. If unchecked, the view rule is not be applied.
    Advanced Select this option to specify a code-based condition instead of using the condition builder. Selecting this option displays the Script field and hides the Match conditions, Conditions, and View fields.
    Match Conditions Select whether Any or All of the conditions need to be met. The system hides this field when you create an advanced View Rule.
    Conditions Use the condition builder to determine when the view is applied. The system hides this field when you create an advanced View Rule.
    Application Displays the application to which the View Rule record belongs.
    Table Select the table on which this view rule will be applied. The list shows only tables and database views that are in the same scope as the view rule
    Device type Select which interface this view rule applies to.
    View Select the view that is automatically applied if the conditions match. The system hides this field when you create an advanced View Rule.
    Script Enter a script to determine when to display a particular view. The system only displays this field when you create an advanced View Rule.
  4. Click Submit.