I have a form and I need some grouping for several fields. For this we have DisplayGroups. I want this displaygroup not rendered as a fieldset, but just a plain definition list.
However, I am not able to get so far.
The desired output
---------------------------------------------
dt normal field label
dd normal field element
dt my 'legend' text for a display group
- dd
- dfn
dt display-group element label 1
dd display-group element element
dt ...
dt ...
---------------------------------------------
I am inclined to think I could get this by
$form->addElements(..);
$form->addDisplayGroup(..., array(
'label' => "my 'legend' text for a display group"
'decorators' => array('FormElements', 'DtDdWrapper')
));
this doen't work. Over at
this thread it is mentioned that for nesting one should use SubForms.
Is this valid in this context?