Matthew Weier O'Phinney wrote:
-- Sudheer <[EMAIL PROTECTED]> wrote
(on Sunday, 03 August 2008, 03:44 PM +0530):
Sudheer wrote:
I did not receive a copy of this message from the list. I suspect a problem with my e-mail client. Apologies if you received this message twice.
I have advanced a bit.

I have encountered a problem with my new code.

You can see the code and output here -> http://pastebin.ca/1091642

When I create checkbox form elements in the subform, it generates hidden fields. If I replace them with text fields, I get correct output and the hidden form fields vanish.

HTML does not submit unfilled checkboxes in a form payload. As a result,
forms with checkboxes either do not validate, or no value is returned
for the checkbox elements. The hidden fields are present to ensure a
value is _always_ passed for the checkbox, correcting this issue.

What you're seeing is the intended behavior of Zend_Form.

I was expecting the form to not return the unfilled checkboxes. Thus, I was worried with the hidden fields. :)

I never expected this is the intended behaviour of Zend_Form. Although, this feature does not assist me in this situation, it sure is a good idea to have unfilled checkboxes return.

Thank you very much.

--

With warm regards,
Sudheer. S
http://binaryvibes.co.in

Reply via email to