Conditions and Validators

Conditions and Validators

Form fields can be conditional and may have one or more validators. It is important for template developers working with form fields to undersetand how these are configured and accessible when creating templates.

{{ condition }}

Represents the condition that should be used to show and hide form fields.

Name Type Description
is_valid Boolean Will be true when the condition exists and is valid
type String The type of condition to use. Each type corresponds to a different condition object which has its own additional properties
output String {JSON object}

{{ validators }}

The tests that should be applied to validate that the value entered in a field is valid before submitting the form.

Name Type Description
is_valid Boolean True if there are one or more validators to apply
output String {JSON object}