• Resolved biglegson

    (@biglegson)


    Hi Carlos Moreira,

    May I know the selected date on the calendar will not be reset to the default date after submitted if there is warning message on contact form 7?

    For example, user chooses 23/11 for reservation. Since the user forget to fill in email address and it is required field, the contact form 7 will reset the date from 23/11 to 16/11 automatically.

    Please advice, thank you.

Viewing 1 replies (of 1 total)
  • Hi @biglegson
    I don’t have an easy solution for this at the moment. This happens because the picker resets every time there’s an ajax call. I plan to add an option in the plugin settings to control this, but might take some time.
    Solutions:
    – investigate how to disable ajax in contact form 7
    – edit the file assets/js/dtpicker.min.js of the plugin and remove the final part:
    .ajaxComplete(function(){dtp_init()})

    Sorry for the limitations, hope it helps.
    Greetings, Carlos

Viewing 1 replies (of 1 total)

The topic ‘Selected date has been reset after submit form’ is closed to new replies.