Skip to content

Commit 08a5064

Browse files
committed
minor #13445 Shortening the "Prototype" paragraph (ThomasLandauer)
This PR was merged into the 3.4 branch. Discussion ---------- Shortening the "Prototype" paragraph Commits ------- 9dcb082 Shortening the "Prototype" paragraph
2 parents 75f1a70 + 9dcb082 commit 08a5064

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

form/form_collections.rst

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -211,16 +211,13 @@ yet to add new tags or delete existing ones.
211211
Allowing "new" Tags with the "Prototype"
212212
----------------------------------------
213213

214-
Allowing the user to dynamically add new tags means that you'll need to
215-
use some JavaScript. Previously you added two tags to your form in the controller.
216-
Now let the user add as many tag forms as they need directly in the browser.
214+
Previously we added two dummy tags to our task in the controller.
215+
Now let the users add as many tag forms as they need directly in the browser.
217216
This will be done through a bit of JavaScript.
218217

219-
The first thing you need to do is to let the form collection know that it will
220-
receive an unknown number of tags. So far you've added two tags and the form
221-
type expects to receive exactly two, otherwise an error will be thrown:
222-
``This form should not contain extra fields``. To make this flexible,
223-
add the ``allow_add`` option to your collection field::
218+
But first, we need to let the form collection know that instead of exactly two,
219+
it will receive an *unknown* number of tags. This is done with the
220+
``allow_add`` option::
224221

225222
// src/AppBundle/Form/TaskType.php
226223

0 commit comments

Comments
 (0)