|
Hi Michal, Personally, I like to delegate building my form to a formbuilder that knows how to add the decorators. However, If you want to do it the basic way, you are probably looking for something like adding an aliased HtmlTag decorator with Tag h2 and placement PREPEND and set the contents to your title for the question. $multiCheckbox->addDecorator(new Zend_Form_Decorator(array('h2' => 'HtmlTag'), array('tag' => 'h2', 'placement' => 'prepend')); There are probably some errors in here, but this is the idea. Oh, and you will need to set some content on your decorator. Bart Michał Zieliński schreef: Hi. Let me show an example: http://zielinski.civ.pl/test/form/form.htmlI must create some kind of inquiry form, which is and probably will be more complex than typical web forms. Of course I know that decorators exists. However this time I failed. I`ve no idea how to use h2 nor checkbox with label and input after it like showed in example with option "other". Thanks for any suggestion. --
|
- [fw-general] Zend_Form - a bit more complex forms Michał Zieliński
- Re: [fw-general] Zend_Form - a bit more complex fo... Bart McLeod
- Re: [fw-general] Zend_Form - a bit more comple... Michał Zieliński

