Zend Framework 2 – change annotationbuilder form

After creating a form with annotationbuilder I wanted to hide certain elements. THats how it works:

$form->getElements()['thefieldname']->setAttribute('type', 'hidden');

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.