File tree Expand file tree Collapse file tree
reference/forms/types/options Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- .. versionadded:: 2 .3
2- The ``action`` option was introduced in Symfony 2 .3 .
3-
41action
52~~~~~~
63
4+ .. versionadded:: 2 .3
5+ The ``action`` option was introduced in Symfony 2 .3 .
6+
77** type** : ``string`` ** default** : empty string
88
99This option specifies where to send the form' s data on submission (usually a
Original file line number Diff line number Diff line change 11empty_value
22~~~~~~~~~~~
33
4- **type**: ``string`` or ``Boolean``
5-
64.. versionadded:: 2.3
75 Since Symfony 2.3, empty values are also supported if the ``expanded``
86 option is set to true.
97
8+ **type**: ``string`` or ``Boolean``
9+
1010This option determines whether or not a special "empty" option (e.g. "Choose an option")
1111will appear at the top of a select widget. This option only applies if the
1212``multiple`` option is set to false.
Original file line number Diff line number Diff line change 11error_mapping
22~~~~~~~~~~~~~
33
4- **type**: ``array`` **default**: ``empty``
5-
64.. versionadded:: 2.1
75 The ``error_mapping`` option is new to Symfony 2.1.
86
7+ **type**: ``array`` **default**: ``empty``
8+
99This option allows you to modify the target of a validation error.
1010
1111Imagine you have a custom method named ``matchingCityAndZipCode`` that validates
Original file line number Diff line number Diff line change 1- .. versionadded:: 2 .3
2- The ``method`` option was introduced in Symfony 2 .3 .
3-
41method
52~~~~~~
63
4+ .. versionadded:: 2 .3
5+ The ``method`` option was introduced in Symfony 2 .3 .
6+
77** type** : ``string`` ** default** : ``POST``
88
99This option specifies the HTTP method used to submit the form' s data. Its
Original file line number Diff line number Diff line change 1- .. versionadded:: 2.2
2- The ``with_minutes`` option was introduced in Symfony 2.2 .
3-
41with_minutes
52~~~~~~~~~~~~
63
4+ .. versionadded:: 2.2
5+ The ``with_minutes`` option was introduced in Symfony 2.2 .
6+
77**type **: ``Boolean`` **default**: ``true``
88
99Whether or not to include minutes in the input. This will result in an additional
You can’t perform that action at this time.
0 commit comments