@@ -707,8 +707,8 @@ the correct values of a number of field options.
707707 (i.e. is the field ``nullable ``). This is very useful, as your client-side
708708 validation will automatically match your validation rules.
709709
710- * ``max_length ``: If the field is some sort of text field, then the ``max_length ``
711- option can be guessed from the validation constraints (if ``Length `` or
710+ * ``maxlength ``: If the field is some sort of text field, then the ``maxlength ``
711+ optionattribute can be guessed from the validation constraints (if ``Length `` or
712712 ``Range `` is used) or from the Doctrine metadata (via the field's length).
713713
714714..note ::
@@ -719,7 +719,7 @@ the correct values of a number of field options.
719719If you'd like to change one of the guessed values, you can override it by
720720passing the option in the options field array::
721721
722- ->add('task', null, array('max_length ' =>4 ))
722+ ->add('task', null, array('attr ' =>array('maxlength' => 4) ))
723723
724724..index ::
725725 single: Forms; Rendering in a template