Skip to content

Commit a798057

Browse files
committed
Reword
1 parent 877ec46 commit a798057

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

reference/forms/types/url.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,12 @@ Field Options
2727

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

30-
Set the value as ``null`` to render the field as ``<input type="url"/>``.
30+
Set this value to ``null`` to render the field using a ``<input type="url"/>``,
31+
allowing the browser to perform local validation before submission.
32+
33+
When this value is neither ``null`` nor an empty string, the form field is
34+
rendered using a ``<input type="text"/>``. This ensures users can submit the
35+
form field without specifying the protocol.
3136

3237
If a value is submitted that doesn't begin with some protocol (e.g. ``http://``,
3338
``ftp://``, etc), this protocol will be prepended to the string when

0 commit comments

Comments
 (0)