Recently I wanted to remove a field from a form object. It was easy, we need to know 2 things:

  • Fieldset name (‘main’ by default)
  • Field name

With this information we can just update the form object with:

 
 
  1. <?php $this->getForm()->removeField('password_fieldset'); ?>
Categories: Development

0 Comments

Leave a Reply

Avatar placeholder

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.

Press Ctrl+C to copy the following code.
"