In ZF 1.5.2, you could use a checkbox to toggle between 0 and 1. (Without specifying any values in your config) Now, in ZF 1.6.1, this doesn't work any more.
In the the static function, determineCheckboxInfo from the FormCheckbox viewhelper there is a check if the value !== null. Then the unCheckedValue will be set with the value of self::$_defaultCheckedOptions['unChecked'] but checkedValue remains null. Later on in the function there is a check if the checkedValue is null and if so, then the checkedValue will be set to the value given to the function. So that means that if the initial value of the checkbox is 0 (so checkbox is unChecked), only the unCheckedValue will be set with the default value. This means that checkedValue remains null and will be changed to 0 in the last if-statement. So this results in a checkedValue of 0 and an unCheckedValue of 0. So you can't toggle anymore because the value will always be 0. Is this the new expected behaviour or is this a bug? It seems related to http://framework.zend.com/issues/browse/ZF-4274 but without the use of Dojo For the moment, I changed on line 135 } elseif ($value !== null) { to } elseif ($value !== null && $value != self::$_defaultCheckedOptions['unChecked']) { to make it backwards compatible -- View this message in context: http://www.nabble.com/Checkbox%2C-can%27t-toggle-anymore%2C-wrong-checkValue-%281.6.1%29-tp19859507p19859507.html Sent from the Zend Framework mailing list archive at Nabble.com.