Permalink
Browse files

bug #3432 [Reference][Form Types] Add "max_length" option in form typ…

…e (nykopol)

This PR was merged into the 2.3 branch.

Discussion
----------

[Reference][Form Types] Add "max_length" option in form type

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | yes
| Applies to    | 2.3+
| Fixed tickets | #3410 (task Form -> max_length)

Commits
-------

b53a227 fix last typo on max length option
d6800d3 fix typo in previous commit
391fe30 fix typo in previous commit
2156545 add max_length to form field type
  • Loading branch information...
weaverryan committed Jan 9, 2014
2 parents 26a7b1b + b53a227 commit 4988118e127dc51d73e2518982c0a0f4ca9206f1
Showing with 8 additions and 3 deletions.
  1. +2 −0 reference/forms/types/form.rst
  2. +6 −3 reference/forms/types/options/max_length.rst.inc
@@ -41,6 +41,8 @@ on all fields.
.. include:: /reference/forms/types/options/block_name.rst.inc
.. include:: /reference/forms/types/options/max_length.rst.inc
inherit_data
------------
@@ -1,7 +1,10 @@
max_length
~~~~~~~~~~
**type**: ``integer``
**type**: ``integer`` **default**: ``null``
This option is used to add a ``maxlength`` attribute, which is used by
some browsers to limit the amount of text in a field.
If this option is not null, an attribute ``maxlength`` is added, which
is used by some browsers to limit the amount of text in a field.
This is just a browser validation, so data must still be validated
server-side.

0 comments on commit 4988118

Please sign in to comment.