On Thu, Feb 5, 2009 at 10:08 PM, A.J. Brown wrote:
>
>
> On Wed, Feb 4, 2009 at 9:44 PM, Deepak Shrestha wrote:
>>
>> Thanks. How about assigning specific error message to each validator?
>>
>
> Use the options array (3rd parameter). The key should be 'messages' and the
> value is another array
>> What I actually wanted to do is:
>> *
>> Empty string will be checked first and shown error message ignoring
>> other validators. So if the string is empty show the error message for
>> empty string validator and exit from validator chain ignoring other
>>
Hi Deepak,
On Wed, Feb 4, 2009 at 8:57 AM, Deepak Shrestha wrote:
>
> What I actually wanted to do is:
> *
> Empty string will be checked first and shown error message ignoring
> other validators. So if the string is empty show the error message for
> emp
Hi,
I have text element in the form with two validators
+---
$mytext= New Zend_Form_Element_Text('mytext');
$mytext->setLabel('Enter Text:');
$mytext->setAttrib('size', '40');
$mytext->setRequired(true)