Calendar field not sending data as correct format

Calendar field sending date in display format instead of real format.

Overview

The issue occurs because the browser's autocomplete feature interferes with the date field, causing it to revert to the display format when repopulating.
Add the autocomplete:off attribute to the calendar field in CF to prevent browser interference and ensure the correct real format is sent.

Answered
ChronoForms v6
he healyhatman 13 Jun, 2018
My calendar field is set to Real Format: YYYY-MM-DD but it's sending the date as DD/MM/YYYY, which is the display format.
Array
(
    [option] => com_chronoforms6
    [chronoform] => new_timesheet-entry
    [event] => submit
    [button92] => 
    [...........]
    [manual_client] => 0
    [client_job_code] => 1
    [manual_job] => 0
    [date] => 13/06/2018   <----------- RIGHT HERE
    [start_time] => 1:00 AM
    [finish_time] => 5:00 AM
    [break] => 0
    [total_hours_calculated] => 4
    [next] => next
)
he healyhatman 13 Jun, 2018
Answer
1 Likes
OK I think I have it figured out. When you go back, it tries to fill the field with the data it already has, in this case it tries to put 2018-06-13 into the field and of course it comes up as 20/06/2013, with the value as 13/06/2018, if any of that makes sense.

Fixed by adding the extra attribute autocomplete:off
Max_admin Max_admin 15 Jun, 2018
Thank you, this is added as a default extra attribute now!🙂

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.