Skip to content

Commit 877ec46

Browse files
committed
minor #20425 [Form] URLType : explain null value for default_protocol (alexislefebvre)
This PR was submitted for the 5.4 branch but it was merged into the 6.4 branch instead. Discussion ---------- [Form] URLType : explain `null` value for `default_protocol` Sources: - symfony/symfony#30635 - symfony/symfony#50922 Commits ------- 0b521e7 URLType: explain `null` value for `default_protocol`
2 parents cd8a822 + 0b521e7 commit 877ec46

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

reference/forms/types/url.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ Field Options
2727

2828
**type**: ``string`` **default**: ``http``
2929

30+
Set the value as ``null`` to render the field as ``<input type="url"/>``.
31+
3032
If a value is submitted that doesn't begin with some protocol (e.g. ``http://``,
3133
``ftp://``, etc), this protocol will be prepended to the string when
3234
the data is submitted to the form.

0 commit comments

Comments
 (0)