- edited description
Date format issues when html5Render is disabled
Issue #4
invalid
I have the following date field:
<?=
$this->Form->control('date_of_birth', [
'type' => 'date',
'html5Render' => false,
'empty' => true,
'dateFormat' => 'DMY'
]);
?>
Having a couple issues which seem to only happen when html5Render is disabled:
First issue is I can't seem to change the format of the date. I'd like it to be DMY, however it always appears as YMD.
Second issue is the required attribute isn't being added to each of the inputs when html5Render is disabled. Required attribute is added if html5Render is enabled.
Comments (4)
-
reporter -
repo owner -
It looks the
dataFormat
was removed in CakePHP 3 (https://book.cakephp.org/3.0/en/appendices/3-0-migration-guide.html#formhelper) -
Required is not add by CakePHP FormHelper, I believe the
'empty' => true
is allowing for no entry. You can add'required' => true
to force required
-
-
repo owner -
assigned issue to
-
assigned issue to
-
repo owner - changed status to invalid
- Log in to comment