Date format issues when html5Render is disabled

Issue #4 invalid
Thomas Georgiadis created an issue

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)

  1. Log in to comment