Skip to content

Latest commit

 

History

History
26 lines (23 loc) · 502 Bytes

File metadata and controls

26 lines (23 loc) · 502 Bytes

2.1 Disabling validation

You can disable the validation in three ways:

  1. globally
//app/config/config.yml
# ...
fp_js_form_validator:
    js_validation: false
  1. for the specified form:
namespace Acme\DemoBundle\Form;

class UserFormType extends AbstractType
{
    public function setDefaultOptions(OptionsResolverInterface $resolver)
    {
        $resolver->setDefaults(array(
            'js_validation' => false
        ));
    }
}
  1. for the specified field