Skip to content

Commit

Permalink
URLType: explain null value for default_protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
alexislefebvre authored and javiereguiluz committed Dec 2, 2024
1 parent cd8a822 commit 0b521e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions reference/forms/types/url.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ Field Options

**type**: ``string`` **default**: ``http``

Set the value as ``null`` to render the field as ``<input type="url"/>``.

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

0 comments on commit 0b521e7

Please sign in to comment.