I am facing an small issue regarding the Email Validation in my Zend Form.
My Code for the Email field is as
$emailId = new Zend_Form_Element_Text('email');
$emailId->setLabel("Email Adresse")
->addFilter('StripTags')
->addFilter('StringTrim')
->addValidator(new Validator_EmailValidator())
->addValidator('NotEmpty')
->addValidator(
'NotEmpty',
TRUE,
array('messages' => array(
'isEmpty' => 'Please enter your email id.'
)
)
);
Currently it is showing the Email Error Messages as :

What I want is to set a single error message in the place of all these errors and that is as :
“‘abcd@shdsjah’ is not a valid Email Id.”
Since I am new to the Zend Framework, I don’t have much idea about it, although I tried some code but they are useless.
Please help…..
Thanks In Advance….
When I was new to zend-framework, I faced this problem and got solution by using setErrors() method as:
You can also try :
Write this code after your code.
I hope it will be helpful to you……