• Resolved keldn

    (@keldn)


    In the “time & date” field, I want +45 days from today to be displayed instead of today’s date

    not online yet

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter keldn

    (@keldn)

    …. and, if possible:
    entry not possible for more than 6 months from today’s date

    Plugin Support Amimul Ihsan Mahdi

    (@amimulihsanmahdi)

    Hello there,

    Fluent Forms supports Flatpickr so you can use Flatpickr examples to set the date as today+45 days. Please follow the documentation for Fluent Forms Date Field and Flatpickr. Regarding the other use case, you can turn on the form scheduling so that the form cannot be submitted after 45 days, please follow the documentation here.

    Thank you

    Thread Starter keldn

    (@keldn)

    Unfortunately, I cannot find the solution to the two challenges – can you help a little more concretely???

    I’m no expert but I see this in Flatpickr (6 months =~180 days from now) –

    {
        minDate: "today",
        maxDate: new Date().fp_incr(14) // 14 days from now
    }

    So you’d need to open “Advanced options” & go to “Advanced Date Configuration” where you can paste this. I haven’t tried it but perhaps something like:

    {
    minDate: new Date().fp_incr(45),
    maxDate: new Date().fp_incr(180)
    }
    Plugin Support Amimul Ihsan Mahdi

    (@amimulihsanmahdi)

    Hi there,

    You can use the below code

    {
    defaultDate: new Date().fp_incr(45),
    maxDate: new Date().fp_incr(180)
    }

    This will display the default date as today+45 days and user cannot select a date more than 6 months from today.

    Thank you

    Thread Starter keldn

    (@keldn)

    Thank you very much – it works perfectly

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.