I'm trying to understand how to remove a shortcut from a display group, when you look at the markup below you will see that there is a dt with the id id and the next dd, I want to remove them, but keep the set of fields.
To add a display group, I use this $this->addDisplayGroup(array(...), 'legend' => 'address'); inside my init init class after adding each of the elements. Are there some decorators I can play with to remove an item that I don't want?
<form id="CreateAddress" enctype="application/x-www-form-urlencoded" action="" method="post"> <dl class="zend_form"> <dt id="address-label"> </dt> <dd id="address-element"> <fieldset id="fieldset-address"> <legend>Address</legend> <dl> <dt id="addressLine1-label"> <label for="addressLine1" class="required">Address Line 1</label> </dt> <dd id="addressLine1-element"> <input type="text" name="addressLine1" id="addressLine1" value=""> </dd> ...etc... </fieldset> </dd> ...buttons... </dl> </form>
Thanks,
Martin
source share