How can i get rid of Zend default error not to show “Value is required and can’t be empty”
Thanks
I’m using this method:
$this->addElement(
'text',
'testname',
array(
'label' => 'User Name',
'required' => true,
'filters' => array(
'StringTrim'
)
)
);
If you need to change the actual message text then use something like this:
Here you change the ‘isEmpty’ message of the NotEmpty validator.
Or if you defined the element differently.