I\'m trying to remove the default decorators on a hidden form element. By default, the hidden element is displayed like this:
Hidden Element Label
For hidden field you need only one decorator - ViewHelper:
$field = new Zend_Form_Element_Hidden('id'); $field->setDecorators(array('ViewHelper'));
This will render only the input field, without Dt-Dd wrapper and label.