[fw-general] Zend_Form_Element_Checkbox

2010-01-22 Thread umpirsky
Hi. I have a problems with checkboxes when doing GET request. I have implemented small javascript method to fix get parameters to zf style param urls jQuery.fn.zfGet = function() { window.location = this.attr('action') + '/' + this.serialize().replace(//g, '/').replace(/=/g, '/');

Re: [fw-general] Zend_Form_Element_Checkbox not populating state?

2009-05-14 Thread ramonhimera
I have been having the same problem as detailed above. In my template i am displaying my form elements like this - without any decoration cos the decorators have caused me endless amounts of trouble. dd?=$this-formCheckbox($this-form-other_venue-getName(), $this-form-other_venue-getValue(),

RE: [fw-general] Zend_Form_Element_Checkbox not populating state?

2009-03-10 Thread fire-eyed-boy
: mon...@gmail.com To: fw-general@lists.zend.com Subject: Re: [fw-general] Zend_Form_Element_Checkbox not populating state? It appears that checkboxes need to set a couple of public properties before rendering $newsletterOptin-options = array( 'checked' = $newsletterOptin-getCheckedValue

[fw-general] Zend_Form_Element_Checkbox not populating state?

2009-03-06 Thread fire-eyed-boy
Hi all, With my Zend_Form I'm populating a single optin checkbox. After submission, when the form is not valid and is rerendered, it fails to have remembered the checkbox's state. It seems to populate a default value of 0 in the hidden element (which I think is correct) but also in the

Re: [fw-general] Zend_Form_Element_Checkbox not populating state?

2009-03-06 Thread Mon Zafra
It appears that checkboxes need to set a couple of public properties before rendering $newsletterOptin-options = array( 'checked' = $newsletterOptin-getCheckedValue(), 'unChecked' = $newsletterOptin-getUncheckedValue() ); Kinda nasty. It's probably nicer to use the decorators the usual

[fw-general] Zend_Form_Element_Checkbox and Firefox.

2009-02-05 Thread Paweł Chuchmała
Hi. As everbody know checkbox element has hidden element for submit value when uchecked. In current version Firefox (3.0.6) it dosen't work. If checkbox is checked, in _POST i have '0'. It's Firefox bug? When I set form method to 'GET' I see, that hidden field is last parameter in url. What

[fw-general] Zend_Form_Element_Checkbox rendering via renderViewHelper

2009-01-30 Thread Jan Wagner-Rosenkranz
Hi all, Zend_Form_Element_Checkbox, does not render right when rendered via renderViewHelper(). The checked and unchecked values are both zero in that case. The problem seems to be that checkValue and unCheckedValue are passed to the decorators only in the render method of the element. Dont

[fw-general] zend_form_element_checkbox required

2008-10-10 Thread valugi
$agreement = new Zend_Form_Element_Checkbox('agreement'); $agreement -setLabel('I agree to terms and conditions') -addValidator( new Zend_Validate_NotEmpty()) -setRequired(true); I do this in my code and the form is submitted adn validated