« FieldHasError »

This condition is verified when a given field has a specific error in a specific validation rule.

Properties

You can find below a list of parameters usable by this condition.

Propriété Titre
* fieldName Name of the field
* validationName Validation rule
errorName Name of the error

Name of the field

Property

fieldName

Required?

Yes

Description

The name of the field which has the error.

Name of the validation rule

Property

fieldName

Required?

Yes

Description

The name of the validation rule which returns the error. For instance required.

Name of the error

Property

errorName

Required?

Yes

Description

The name of the returned error. Most of the time it will be the default value: default.

Note that if the value is not filled, it will automatically be set to default.

Example

activation {
    items {
        emailHasErrorRequired {
            type = fieldHasError
            fieldName = email
            validationName = required
        }
    }
}