You are viewing the documentation for Blueriq 17. Documentation for other versions is available in our documentation directory.

What is it for?

Validation rules are used for validating (checking) input, or calculations made based on input.

What is it?

A validation rule specifies the condition(s) the value of the Attribute has to meet in order to make it a valid entry. The outcome of a validation rule is always true, false or unknown (Boolean).

A validation rule passes if the outcome is true or unknown.

When do validation rules apply?

Validation rules apply when:

  • connected to an attribute, AND

  • the attribute is put on a page AND

  • the attribute is not read-only AND

  • the page is submitted.

Validations are also triggered upon "refresh" (see containers).

Validations set to "Blocking" prevent users from continuing to another page if the condition is invalid.

Validation types

Several predefined, more complicated validations are automatically imported into Blueriq projects (they are defined in the BlueriqBasicModelling Library). These are documented on the page for Validation types.

Properties

PropertyDescription
ExpressionInsert the valid condition the attributes value has to meet.
Message

Describe the message you want to show the user when the condition defined in the expression is not met. (You can also add the message when connecting the validation to the attribute. This will override the message defined within the validation rule).

The message can contain Text Substitution Language: TSL

BlockingTick this box if you want the validation rule to be blocking. In this case users have to make the condition valid before they can continue with the application.

How to – add a validation rule to an attribute

  1. Select the attribute you want to add the validation rule to

  2. Click on the +Add validation button to add the validation

  3. Choose the validation rule you wish to add to the attribute


  • No labels