'action' => ''
Where to send the form's data on submission (usually a URI)
'allow_extra_fields' => false
Allow additional fields to be submitted
'error_mapping' => array('matchingCityAndZipCode' => 'city')
Modify the target of a validation error
'extra_fields_message' => 'This form should not contain extra fields.'
Validation error message if additional fields are submitted
'inherit_data' => false
Inhered data from parent form or not
'method' => 'POST'
HTTP method used to submit the form
'post_max_size_message' => 'The uploaded file was too large.'
Validation message for size of post form data
'validation_groups' => false
Disable the Validation of Submitted Data
public function configureOptions(OptionsResolver $resolver) {
$resolver->setDefaults(array(
# Options go here #
));
}
Comments