Fixed with ->addElement( 'text', 'name', array( 'label' => 'Lab:', 'filters' => array('Int', 'Null'), 'required' => true )
this requires zf 1.10+ umpirsky wrote: > > Hi. > > I have several fields of int type which I have in my form. I want to get > integer when I get values from form after submission. So, I attached int > filter like: > > ->addElement( > 'text', > 'name', > array( > 'label' => 'Lab:', > 'filters' => array('Int'), > 'required' => true > ) > > This works ok, but when I render empty form, I get zero in my input, which > looks very odd. I want empty field when nothing entered. Should I use new > Zend_Filter_Null in combination with int filter, or there is sth else I > can do? > > Regards, > Saša Stamenković. > -- View this message in context: http://n4.nabble.com/Zend-Form-Int-filter-tp976819p978774.html Sent from the Zend Framework mailing list archive at Nabble.com.