Daniel,

Thank you for your response. Actually, I would love to see what you have come 
up with. I'm curious: does your custom element allow for validation and/or 
repopulating selected values for redrawing the form too? That would be quite a 
sweet addition which would be of very good use for me at this moment. :-)

In any case, I'm looking forward to seeing your implementation somewhere for me 
to download. Much appreciated. Thank you in advance.



Date: Mon, 20 Apr 2009 11:44:50 +1000
From: [email protected]
To: [email protected]; [email protected]
Subject: RE: [fw-general] Multidimensional MultiCheckbox










This would probably require a custom element. I've actually 
created a similar element for a project im working on that generates a subform 
for each 'row' that contains an number of zend_form_elements passed in to it 
via 
the constructor. 
 
It does however generate the names in the 
form "media[0]['image']" & "media[0]['video']" so the data comes out in 
rows.
 
I have a feeling I read something by matthew where he mentions 
that zend forms shouldnt use the numeric array notation, but in this case I 
sort 
of felt it was the best way.
 
Let me know if you wish to see the element and decorator and ill 
stick it up in pastebin somewhere.
 
Thanks,
Daniel.



From: [email protected] 
[mailto:[email protected]] 
Sent: Monday, 20 April 2009 7:13 
AM
To: Nabble Zend Framework General
Subject: [fw-general] 
Multidimensional MultiCheckbox


Hi all,

My apologies if you receive this message multiple 
times. But my messages don't seem to reach the list anymore. Hopefully through 
this route it will. 

My question is this: Is there any way to create a 
multidimensional MultiCheckbox which result in something like this:
<input 
type="checkbox" name="media['image'][0]">
<input type="checkbox" 
name="media['image'][1]">
<input type="checkbox" 
name="media['video'][0]">
<input type="checkbox" 
name="media['video'][1]"> 

etc...?


Thank you in 
advance.



Haal meer uit je Hotmail met Internet Explorer 8. Download nu
_________________________________________________________________
Nieuws, entertainment en de laatste roddels. Je vind het op MSN.nl!
http://nl.msn.com/

Reply via email to