File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -679,9 +679,12 @@ the documentation for each type.
679
679
The most common option is the ``required `` option, which can be applied to
680
680
any field. By default, the ``required `` option is set to ``true ``, meaning
681
681
that HTML5-ready browsers will apply client-side validation if the field
682
- is left blank. If you don't want this behavior, either set the ``required ``
683
- option on your field to ``false `` or
684
- :ref: `disable HTML5 validation <book-forms-html5-validation-disable >`.
682
+ is left blank. If you don't want this behavior, either
683
+ :ref: `disable HTML5 validation <book-forms-html5-validation-disable >`
684
+ or set the ``required `` option on your field to ``false ``:
685
+
686
+ ->add('dueDate', 'date', array('widget' => 'single_text',
687
+ 'required' => false))
685
688
686
689
Also note that setting the ``required `` option to ``true `` will **not **
687
690
result in server-side validation to be applied. In other words, if a
You can’t perform that action at this time.
0 commit comments