Set your default value to false :

$this->setDefault("is_disabled", false);



2009/12/4 Zuchuat Bertrand <bertrand.zuch...@rero.ch>

> Hi,
>
> I would like to uncheck the value on the widget Checkbox.
>
> I tested this on my class form but nothing:
>
> public function configure()
>   {
>     if ($this->isNew())
>     {
>       $this->widgetSchema['is_disabled'] = new
> sfWidgetFormInputCheckbox(array('value_attribute_value' => ''));
>     }
>   }
>
> I tested another solution but nothing:
> $this->widgetSchema['is_disabled']->setAttribute('checked', '');
>
> Why. I don't understand ???
>
> What's the best solution to uncheck this ?
>
> Thank you for your help.
>
> Bertrand
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "symfony users" group.
> To post to this group, send email to symfony-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en.
>
>
>


-- 
Alexandre Salomé -- alexandre.sal...@gmail.com

--

You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.


Reply via email to