HI
i want to validate an email using the standard sfEmailValidator on a
custom named input. It works but the error message is not changed. How
can i change the error message?

this is the yml file that handles the validation:
methods:
  post: [author, content, author_email]

fillin:
  activate:   Yes

names:
  content:
    required: Yes
    required_msg: Trebuie sa introduci un comentariu.
  author:
    required: Yes
    required_msg: Cine esti?
  author_email:
    required: Yes
    required_msg: Cum te gasesc?
    validators: emailValidator

emailValidator:
  class: sfEmailValidator
  strict:       true
  author_email_error:  Custom message for email error


The name of the email input is author_email.

Thanks and Have a Blessed Christmas
Valentin Ceaprazaru

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to