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, '/');
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(),
: 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
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
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
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
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
$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