> That is, a Zend_Form_Element_MultiCheckbox with three options,
> containing multiple Zend_Form_Element_Text instances. You get the
> idea.
>
> What's the best way to achieve this? Is this even possible with Zend_Form?

I've solved this by disabling escaping on the parent element, and
adding the child element by hand. Something like this:

$options = array(
    'label' => 'Answer 2',
    'disableLoadDefaultDecorators' => true,
    'decorators' => array('Label', 'ViewHelper')
);
$answers = array(
    '1' => htmlentities('Answer 1'),
    '2' => new Zend_Form_Element_Text('child', $options)
);
$form->addElement('radio', 'parent', array('escape' => false,
'multiOptions' => $answers));

-- 
Privateer Software Development (www.privateer-software.nl)
* web usability, web accessibility, web development
* cross-platform software development

Reply via email to