Add validation rule for checkbox field in the form declaration:
public function configure()
{
parent::configure();
...
$this->validatorSchema['with_delete'] = new sfValidatorBoolean();
}
For more information look at http://trac.symfony-project.org/ticket/5524
On 30 дек 2008, 18:58, Jeremy Benoist <[email protected]>
wrote:
> Hi,
>
> Same problem for me and I wonder how to correctly use "with_delete".
> I take a look at Jobeet, to see how it is handled in job backend part,
> but there is also the problem..
>
> J.
>
> On 1 nov, 00:09, adrive <[email protected]> wrote:
>
> > Hello. I would like to use sfWidgetFormInputFileEditable with the delete
> > feature, but I am wondering how.
>
> > When I try it, I get an error:
> > Unexpected extra form field named "image_delete".
>
> > That's because the additional fields that are generated by the FE Widget are
> > not registered in the sfForm::validatorSchema and sfForm::widgetSchema.
>
> > How should it be used?
>
> > Thanks.
> > --
> > adrive
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---