Current Record: validators:VALIDATOR_NAME:message #96

Return to fields.ini file Table of Contents Synopsis Format Examples See Also Synopsis If you want to customize the error message ...

Current Record: validators:VALIDATOR_NAME:message #96

Return to fields.ini file Table of Contents Synopsis Format Examples See Also Synopsis If you want to customize the error message ...

validators:VALIDATOR_NAME:message directive for the fields.ini file

[Permalink]

Return to fields.ini file

Table of Contents

Synopsis

If you want to customize the error message associated with a particular validation rule? you can use the validators:VALIDATOR_NAME:message directive in the fields.ini file.

Format

[myfield]
    validators:VALIDATOR_NAME:message = MESSAGE

Examples

If you don't like the default error message that is displayed when you make the first_name field required, you can customize it with your own message. E.g.

[first_name]
    validators:required=1
    validators:required:message = "Please enter your first name"

See Also

blog comments powered by Disqus
Powered by Xataface
(c) 2005-2024 All rights reserved