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
Use this:
foreach ($this->getElements() as $element) { $decorator = $element->getDecorator('label'); if (!$decorator) { continue; } $decorator->removeOption('tag'); }