html_quickform 1, change checkbox default value?

240 Views Asked by At

I'm trying to change a checkbox default value (which is 1) to something else with HTML_Quickform.

$form->addElement('checkbox', 'people', 'Personnel et étudiants :', array('value' => 'Personnel et étudiants'));

But it doesn't work. The value is still 1. I'm using Quickform 1.164 and I can't use a new version (it's integrated to a massive framework and there is a lot of work if I want to update/check all existing forms).

Any idea?

0

There are 0 best solutions below