Is it possible to specify a missingMessage specific to particular fields and
validators? This is basically what I want to do:



$validators = array(
        'txt_Name' => array(
                'NotEmpty',
                'messages' => 'Please provide your Name'
        ),
        'txt_Email' => array(
                'EmailAddress',
                'presence' => 'required',
                'messages' => array(
                        Zend_Validate_NotEmpty::IS_EMPTY => 'The Email Address 
you Entered is
invalid',
                        Zend_Filter_Input::PRESENCE_REQUIRED => 'You must enter 
an Email Addres'
                )
        )
);


The generic missingMessage template for any and all missing fields, like
(The field %field% is required) is not specific enough for my purposes.
-- 
View this message in context: 
http://www.nabble.com/Field-specific-messages-for-Zend_Filter_Input%3A%3APRESENCE_REQUIRED-tf4440222s16154.html#a12668639
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to