Skip to main content
Version: 8.0

Show/hide an element on page

Level: beginner

You can set up a business rule that will make certain elements on record pages visible or hidden under specific conditions. These elements include: fields, details, field groups and tabs.

Example

Show the Sick leave, days left field on a request page for all requests whose Originator type is an employee.

To implement this, you need to make the Sick leave, days left field visible only if the value in the request Status field is “In progress.” To do this:

  1. Open the needed section (e.g., the Requests custom section) and add a new business rule.. You can learn more about adding and setting up a new business rule in the Set up a new business rule article.

  2. In the “IF” block of the business rule, set the filter to define the conditions for triggering the business rule. For example, to apply a rule to the requests with the “Employee” originator type:

    1. Click Add condition.

    2. In the field that appears, select the “Originator type” column as the lookup value. Note that boolean fields cannot be used for setting up the condition since they equal either “true” or “false,” i.e., they are always filled in.

    3. Leave the “=” (equal) sign as it is.

    4. Click the icon and select the “Lookup” field type in the drop-down list. A set of fields for specifying lookup values will appear to the right. Select “Employee” as the lookup value from the drop-down list.

      Show/hide field - configuring the “IF” condition of the business rule
      Show/hide field - configuring the “IF” condition of the business rule
  3. In the “THEN” block of the business rule, set up the action that would implement the needed business logic.

    1. Click Add action → “Show element on the page.”

    2. In the Which element will be shown? block, select the element type to show. For example, leave the Field element type as it is.

    3. Select field to display on the page, e.g., Sick leave, days left.

    4. Click ApplySection WizardSave.

      Show/hide field - configuring the “THEN” condition of the business rule
      Show/hide field - configuring the “THEN” condition of the business rule

As a result, the Sick leave, days left field will display only for requests where the Originator type field contains “Employee.” If the Originator type field contains any other value, the Sick leave, days left field will be hidden.


See also

Add a new section

Set up page fields


E-learning courses

Creatio interface setup. Section wizard. Detail wizard