Validate message email_required

Validate message email_required

jboscherjboscher Posts: 17Questions: 2Answers: 0

email_required

I want 2 different validation messages. One for required and one for email.
How to do that? If the email is not added, I want a message. If the email is not valid I want an other message.

Field::inst( 'wp_qspread_invite.email')
->validator( 'Validate::email_required', array(
"message" => "email @ required"
)),

As it is here, the message is showed when the email is not valid and when there is no email we get the default message "This field is required" what I want to replace by my own message.

This discussion has been closed.