forked from symfony/symfony-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Reference][Form Types] Add missing options for "form" type
- Loading branch information
Showing
4 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
extra_fields_message | ||
~~~~~~~~~~~~~~~~~~~~ | ||
|
||
**type**: ``string`` **default**: ``This form should not contain extra fields.`` | ||
|
||
This is the validation error message that's used if the submitted form data | ||
contains one or more fields that are not part of the form definition. The | ||
placeholder ``{{ extra_fields }}`` can be used to display a comma separated | ||
list of the submitted extra field names. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
pattern | ||
~~~~~~~ | ||
|
||
**type**: ``string`` **default**: ``null`` | ||
|
||
This option adds a ``pattern`` attribute to restrict the field input by a | ||
regular expression. | ||
|
||
.. caution: | ||
|
||
This validation is client-side only. | ||
|
||
.. note: | ||
|
||
When using validation constraints, this option is set automatically | ||
for some constraints to match the server-side validation. |
12 changes: 12 additions & 0 deletions
12
reference/forms/types/options/post_max_size_message.rst.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
post_max_size_message | ||
~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
**type**: ``string`` **default**: ``The uploaded file was too large. Please try to upload a smaller file.`` | ||
|
||
This is the validation error message that's used if submitted POST form data | ||
exceeds php.ini's ``post_max_size``. The ``{{ max }}`` placeholder can be used | ||
to display the allowed size. | ||
|
||
.. note: | ||
|
||
Validating the ``post_max_size`` only happens on the root form. |