Feature Request: Date Field display only past dates, i.e. today or before?

  • RDTS
    Asked on August 8, 2014 at 6:51 PM

    I know the field offers a feature to disable past dates, but is the opposite feasible? I need submitters to indicate the date something happened, which may be today or before, but not in the future.

    Thanks!

  • Carina
    Replied on August 8, 2014 at 8:31 PM

    DateTime Field displays past dates, but if the user selects a past date it shows an error message that "Date must not be in the past."

    For now the DateTime Field only has the option of disabling Past dates but I will forward a feature request so that the option of disabling future dates might be taken into consideration.

    For now you can try a workaround that is adding a Text field with a warning message and then adding a condition so that if "DateTime" is after today then show the warning message:

    Feature Request: Date Field display only past dates, i Screenshot 20

    You can also add an extra condition that if the date is after today, the next or submit button might be hidden.

    Let us know if further support is needed.
    Thank you

  • Aytekin JotForm Founder
    Replied on August 9, 2014 at 3:21 AM

    The Birth Date Picker might be a better option. It does not future years. In fact, you can customize the year range.

    Feature Request: Date Field display only past dates, i Screenshot 20

    You might prefer the mini calendar in the date picker. In my opinion, selecting dates on a dropdown is easier/faster than using a calendar. 

     

  • RDTS
    Replied on August 11, 2014 at 10:57 AM

    Good morning to both of you!

    I think this feature would be very useful with the calendar. I will try the workaround using conditions in the meanwhile.

    As for the option of using the Birth Date Picker, it's great that the year range can be customized so easily, but you can't get precise enough to limit dates after today. I also agree that in some situations the calendar is not always the easiest tool!  But since our form is going to be used on a very regular basis on mobile devices to log events that occurred within the last few days, the calendar makes it more convenient to choose a date starting from today and refer to days of the week to avoid mistakes. (ex. "What was last Thursday's date again? Hold on, I will check on my calendar..." On mobile devices, this implies switching back and forth from an app to another)

    In all cases, thanks for your answers, they were pretty useful and I look forward to the upcoming implementation of this useful feature!

    Thank you both and have a great day!

  • KadeJM
    Replied on August 11, 2014 at 12:23 PM

    We do understand where you are coming from. At the moment there really is no other alternative to block out dates ahead of time unless it is done via our Reservation Widget or through the two methods mentioned above with a custom calculation or even some other custom workarounds if you have the knowledge to do so which could be set to limit it.

    If and when something like this is added then we'll update you about it here. 

  • ztwersky
    Replied on September 1, 2014 at 7:39 AM

    I really need this too. I don't want clients to be able to pick a date in the future. This messes up my orders as future dates can not be ordered.
  • Carina
    Replied on September 1, 2014 at 10:21 AM

    @ztwersky 

    Your request was moved into a new thread so we can address it better. Our support team will answer it in this new thread. 

    Please get back to us if further support is needed.
    Thank you

  • RDTS
    Replied on May 25, 2015 at 2:33 PM

    Awesome! Thank you.