Forums

Calendar field not sending data as correct format

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
)
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 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.