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.html

I 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.


  

--
Bart McLeod
Space Web Internet Team
Middenlaan 47
6865 VN Heveadorp
The Netherlands
t +31(0)26 3392952
m 06 51 51 89 71
@ [EMAIL PROTECTED]
www.spaceweb.nl
zce logo zce PHP 5 logo

Bart McLeod is a Zend Certified Engineer.

Click to verify!

Reply via email to