Relevance rules

Relevance rules determine whether a Field is relevant or not. When a Field is not relevant, it is not shown in data entry, and its value is expected to be blank.

Relevance rules are sometimes known in other systems as “skip logic.”

Enabling

Relevance rules can be set for Fields in the Form Designer. First, check “Set relevance rules”. Then you can build the rule using the Rule builder or the Formula editor.

Screencast of setting a relevance rule (webm)

Behavior

Data entry

When adding a Record, a Field with a relevance rule is hidden whenever the relevance rule evaluates to FALSE.

When editing a Record, if any changes that are made that make a previously relevant Field irrelevant, the value of the newly irrelevant Field is set to empty when saving.

Screencast of entering data with a relevance rule (webm)

Required Fields with relevance rules

A Field can be both Required, and have a relevance rule set. When the Field is relevant, a value must be provided. When it is not relevant, it is not be required and must be blank.

Subforms

When a relevance rule is defined for a Subform field, ActivityInfo takes extra steps to avoid data loss.

During data entry, if a Subform field with existing Records becomes irrelevant, the user is prompted to acknowledge, that saving the changes deletes the newly irrelevant Subrecords.

Screencast of irrelevant records (webm)

Irrelevant Subrecords in the Table view

If Subrecords become irrelevant, because the relevance rule has been updated after the irrelevant data has been collected, then these will be flagged in the Table view as irrelevant:

Importing Records

When importing Records into Forms with relevance rules, the Importer feature validates the import based on the relevance rules defined. If a Field value for a Record is irrelevant, but a value is provided, it is considered invalid.

Next item
Required