What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

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

    Asked by RDTS on August 08, 2014 at 06: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!

    date field thanks
  • Profile Image

    Answered by Carina on August 08, 2014 at 08: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:

    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

  • Profile Image
    JotForm Founder

    Answered by aytekin on August 09, 2014 at 03:21 AM

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

    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. 

     

  • Profile Image

    Answered by RDTS 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!

  • Profile Image
    JotForm Support

    Answered by KadeJM 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. 

  • Profile Image

    Answered by ztwersky on September 01, 2014 at 07: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.
  • Profile Image

    Answered by Carina on September 01, 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

  • Profile Image

    Answered by RDTS on May 25, 2015 at 02:33 PM

    Awesome! Thank you.