You can disable the validation in three ways:
- globally
//app/config/config.yml
# ...
fp_js_form_validator:
js_validation: false
- for the specified form:
namespace Acme\DemoBundle\Form;
class UserFormType extends AbstractType
{
public function setDefaultOptions(OptionsResolverInterface $resolver)
{
$resolver->setDefaults(array(
'js_validation' => false
));
}
}
- for the specified field