Hi everyone,

I'm fairly new to working with Zend_Form (not to the framework
though), and so far, it performing nicely. However, I'm not sure if
it's possible to nest elements using Zend_Form. Let me give you an
example of what I'm trying to achieve:

  What's your favorite color?
  ( ) Red
  ( ) Green
  ( ) Blue
  ( ) Other: [                        ]

So, a Zend_Form_Element_Radio with four options, containing a
Zend_Form_Element_Text.

Another example:

  Don't forget:
  [ ] Clothes
  [ ] Toothbrush
  [ ] Bike
  [ ] [                        ]
  [ ] [                        ]

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?

Kind regards,

Maarten

P.S. I googled, but could not find anything about this. The only thing
I could find was 'Creating composite elements'
<http://weierophinney.net/matthew/archives/217-Creating-composite-elements.html>.
Unfortunately, this is not what I'm looking for.

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

Reply via email to