Twitter Feed

Xataface Maillist

Sign up to receive the Xataface news letter with weekly updates and development tips.

 
Found 135 of 135 records in table Wiki
Now Showing 97 of 135

Current Record: validators:VALIDATOR_NAME: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-2010 All rights reserved