4
4
How to Create a Custom Form Field Type
5
5
======================================
6
6
7
- Symfony comes with :doc: `tens of form types </reference/form /types >` (called
7
+ Symfony comes with :doc: `tens of form types </reference/forms /types >` (called
8
8
"form fields" in other projects) ready to use in your applications. However,
9
9
it's common to create custom form types to solve specific purposes in your
10
10
projects.
@@ -13,9 +13,9 @@ Creating Form Types Based on Symfony Built-in Types
13
13
---------------------------------------------------
14
14
15
15
The easiest way to create a form type is to base it on one of the
16
- :doc: `existing form types </reference/form /types >`. Imagine that your project
16
+ :doc: `existing form types </reference/forms /types >`. Imagine that your project
17
17
displays a list of "shipping options" as a ``<select> `` HTML element. This can
18
- be implemented with a :doc: `ChoiceType </reference/form /types/choice >` where the
18
+ be implemented with a :doc: `ChoiceType </reference/forms /types/choice >` where the
19
19
``choices `` option is set to the list of available shipping options.
20
20
21
21
However, if you use the same form type in several forms, repeating the list of
@@ -102,7 +102,7 @@ Creating Form Types Created From Scratch
102
102
----------------------------------------
103
103
104
104
Some form types are so specific to your projects that they cannot be based on
105
- any :doc: `existing form types </reference/form /types >` because they are too
105
+ any :doc: `existing form types </reference/forms /types >` because they are too
106
106
different. Consider an application that wants to reuse in different forms the
107
107
following set of fields as the "postal address":
108
108
0 commit comments