Dynmically accept dates based on the current date

  • mobileloaves
    Asked on June 30, 2022 at 5:47 PM

    Hello,

    I'd like to have a date range automatically update weekly for this form every Monday: https://form.jotform.com/72491764384163

    Example: On 6/27, the form should only accept dates from the previous Monday-Sunday 6/20-26

    1656625616 62be19d05fc44  Screenshot 10

  • Billy JotForm Support
    Replied on July 1, 2022 at 12:15 AM

    Hello there,

    Thank you for reaching out to Jotform Support. I understand the concern but will need a bit of time to work out a solution. I’ll get back to you shortly. We appreciate your patience and understanding.

  • Billy JotForm Support
    Replied on July 1, 2022 at 12:31 AM

    Thanks for patiently waiting. Please follow the guide below:

    1. Disable(uncheck) Future dates on both Date pickers
      1656649804 62be784ce1469  Screenshot 10
    2. Add the variables as shown in the screenshot below:
      1656649863 62be7887d181f  Screenshot 21

    Let us know if there’s anything else we can help you with.

  • mobileloaves
    Replied on July 1, 2022 at 5:35 PM

    Hi Billy, thank you for your suggestion!

    Unfortunately, the approach won't work for our purposes. Every Monday we want to update the window of availability only to the previous Monday-Sunday of the week. Do you think this is doable?

  • VincentJay
    Replied on July 1, 2022 at 7:18 PM

    Hello,

    Thanks for using Jotform. If you're going to update it every Monday, please try the Appointment field. Here's what it looks like:

    1656717425 62bf8071f2626 cqs14ads Screenshot 10

    Would that work for you? Also, is this reservation date?

    Once we hear back from you, we'll be able to help you with this.

  • mobileloaves
    Replied on July 5, 2022 at 1:12 PM

    Thanks for the response! However, the Appointment field isn't what I'm looking for. We will continue updating our parameters manually.