DEPRECATION WARNING
This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.
« 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
}
}
}