Re: Problem with FormHelper::checkbox(...)

2009-05-07 Thread Marcelo Andrade
On Thu, May 7, 2009 at 2:02 PM, Javier wrote: > > We are using a checkbox in our application and with a condition we > want to disable it. > > $form->checkbox('name', array('disabled' => $condition)); > > FormHelper::checkbox creates an input hidden and an input checkbox > element, but the hidden

Problem with FormHelper::checkbox(...)

2009-05-07 Thread Javier
We are using a checkbox in our application and with a condition we want to disable it. $form->checkbox('name', array('disabled' => $condition)); FormHelper::checkbox creates an input hidden and an input checkbox element, but the hidden element is always disabled, making it useless. It get disabl