Re: [symfony-users] Adding a required checkbox to a form - #sf1.4

2011-05-16 Thread Gareth McCumskey
What it sounds like you need is a post validator... http://www.symfony-project.org/forms/1_4/en/02-Form-Validation#chapter_02_global_validators On Mon, May 16, 2011 at 1:58 PM, codecowboy wrote: > Hi, > I can't find an example of how to add a required checkbox to a form > which is unrelated to

[symfony-users] Adding a required checkbox to a form - #sf1.4

2011-05-16 Thread codecowboy
Hi, I can't find an example of how to add a required checkbox to a form which is unrelated to my model e.g a checkbox to accept the terms and and conditions for registration. I think maybe what I need is something like: $this->widgetSchema['tsandcs'] = new sfWidgetFormInputCheckbox(); $t