Saturday, January 15, 2011

Remove 'is empty' checkbox from Filter Form in Symfony

Use the following line in the filter form's setup or configure function:
$this->getWidget('name')->setOption('with_empty', false);

1 comment: