We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents df58a32 + a798057 commit a820bdeCopy full SHA for a820bde
reference/forms/types/url.rst
@@ -25,6 +25,13 @@ Field Options
25
26
**type**: ``string`` **default**: ``http``
27
28
+Set this value to ``null`` to render the field using a ``<input type="url"/>``,
29
+allowing the browser to perform local validation before submission.
30
+
31
+When this value is neither ``null`` nor an empty string, the form field is
32
+rendered using a ``<input type="text"/>``. This ensures users can submit the
33
+form field without specifying the protocol.
34
35
If a value is submitted that doesn't begin with some protocol (e.g. ``http://``,
36
``ftp://``, etc), this protocol will be prepended to the string when
37
the data is submitted to the form.
0 commit comments