I am using Symfony 1.3.x for a project.
In the configure() method of one of my forms, I have the following code:
'terms' => new sfWidgetFormInputCheckbox(array('value_attribute_value'=>'terms', 'default' => false )),
The idea is to present the user with a checkbox (default unchecked), which the user will have to check before the form validates.
The problem is that when I display the form, the checkbox is ALWAYS already checked (i.e. selected) - which defeats the purpose of enforcing user confirmation with a checkbox.
Does anyone know how to resolve this?