You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rendering Date (Symfony\Component\Form\Extension\Core\Type\DateType) doesn't work because of an error.
Expected Behavior
DateType should be rendered with default format without error
Steps to Reproduce
Add Date form field in form. This throws an error on page rendering: Cannot use the "format" option of "Symfony\Component\Form\Extension\Core\Type\DateType" when the "html5" option is enabled.
Possible Solutions
DateType field have by default html5 option value set to true.
But this is incompatible with the value of the format option set to IntlDateFormatter::LONG
I found a little workaround.
Simply decorate Sulu\Bundle\FormBundle\Dynamic\Types\DateType in service.yaml
To use custom DateType class instead of the sulu one.
Actual Behavior
Rendering Date (Symfony\Component\Form\Extension\Core\Type\DateType) doesn't work because of an error.
Expected Behavior
DateType should be rendered with default format without error
Steps to Reproduce
Add Date form field in form. This throws an error on page rendering: Cannot use the "format" option of "Symfony\Component\Form\Extension\Core\Type\DateType" when the "html5" option is enabled.
Possible Solutions
DateType field have by default html5 option value set to true.
But this is incompatible with the value of the format option set to IntlDateFormatter::LONG
Could dateformat be configured in sulu form yaml config file, and html5 set to false?
Maybe this is relative to this issue : #49
The text was updated successfully, but these errors were encountered: