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 @@ -669,9 +669,12 @@ the documentation for each type.
669
669
The most common option is the ``required `` option, which can be applied to
670
670
any field. By default, the ``required `` option is set to ``true ``, meaning
671
671
that HTML5-ready browsers will apply client-side validation if the field
672
- is left blank. If you don't want this behavior, either set the ``required ``
673
- option on your field to ``false `` or
674
- :ref: `disable HTML5 validation <book-forms-html5-validation-disable >`.
672
+ is left blank. If you don't want this behavior, either
673
+ :ref: `disable HTML5 validation <book-forms-html5-validation-disable >`
674
+ or set the ``required `` option on your field to ``false ``:
675
+
676
+ ->add('dueDate', 'date', array('widget' => 'single_text',
677
+ 'required' => false))
675
678
676
679
Also note that setting the ``required `` option to ``true `` will **not **
677
680
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