Layout Expressions

The layout is the view on documents, the data a user needs to accomplish (a part of) a process. Because not every user needs the same view, we need to be able to hide certain parts of a layout like fields or lines. With the help of permissions you can hide fields and lines based on statuses, this is not enough however. There are cases you want to only show fields or lines based on conditions other than a status.

  • Layout expressions can be set in the Document Page layouts only.

Display only if

Please take the following steps to set the display only to a field, line or line section:

  1. Go to Settings.
  2. Click on a Document Definition
  3. Click on a Document Page Layout.
  4. Click the pencil on a field.
  5. Set a condition in the Display only if field.
  6. By clicking the Save button, the layout will be persisted.

Condition

Please take the following steps to set conditions on a line section:

  1. Go to Settings.
  2. Click on a Document Definition
  3. Click on a Document Page Layout.
  4. Click the pencil on a line section.
  5. Set the number of conditions.
  6. Set a condition in the Condition # field.
  7. Set the color to be displayed when condition is true.
  8. By clicking the Save button, the layout will be persisted.

The same type of expressions can be used for display only if & conditions.

In the case you want to display only if / condition, if the value of total has exceeded 10.

{!total!} > 10

You can find the operators in the section on reference field expressions, but you can also use settings.

There are some limitations to the expression:

  • you can only refer to fields that are part of the layout.
  • you can only refer to header fields.

However the field might not be visible for the user anymore, the content of the field can still be read from the memory of a user's webbrowser.

results matching ""

    No results matching ""