@@ -709,8 +709,8 @@ the correct values of a number of field options.
709709 (i.e. is the field ``nullable ``). This is very useful, as your client-side
710710 validation will automatically match your validation rules.
711711
712- * ``max_length ``: If the field is some sort of text field, then the ``max_length ``
713- option can be guessed from the validation constraints (if ``Length `` or
712+ * ``maxlength ``: If the field is some sort of text field, then the ``maxlength ``
713+ optionattribute can be guessed from the validation constraints (if ``Length `` or
714714 ``Range `` is used) or from the Doctrine metadata (via the field's length).
715715
716716..note ::
@@ -721,7 +721,7 @@ the correct values of a number of field options.
721721If you'd like to change one of the guessed values, you can override it by
722722passing the option in the options field array::
723723
724- ->add('task', null, array('max_length ' =>4 ))
724+ ->add('task', null, array('attr ' =>array('maxlength' => 4) ))
725725
726726..index ::
727727 single: Forms; Rendering in a template