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: Generate an error message between 2 date fields if a condition is not met.

    Asked by rsvpfree on February 20, 2015 at 06:18 AM

    I have two fields on my form which were both created by clicking "Date/Time" under Quick Tools in the left-hand sidebar. Both are set to be Required fields.

    One is called (ie, label says) "Start Date/Time" and the other is called "End Date/Time".

    What I would like to do is prevent the user (with display of a suitable error message) from entering a Date/Time in "End Date/Time" which is earlier than the one in "Start Date/Time".

    Can this be done, and if so how?

    same form same Than another
  • Profile Image

    Answered by Sean on February 20, 2015 at 10:09 AM

    Sorry to say that but it is not possible to do this in the Jotform interface currently. A ticket was submitted for a feature similar to what you are requesting that could help you out but it is not yet implemented. For you to do such a comparison, I am afraid you will have to make adjustments to the source code for the form.

    However, I will pass this information on to our development team so that they can look into its implementation also. I can not say when this will be completed but I can assure you that once this feature is available, you will be notified via this thread. We will be in touch.


    Cheers!

  • Profile Image

    Answered by rsvpfree on February 20, 2015 at 10:30 AM

    Thanks Sean. I will look forward to this!

  • Profile Image

    Answered by Carina on February 20, 2015 at 12:04 PM

    On behalf of my colleague you ar

    e most welcome. You will be contacted as soon as we have more details on this situation.

    Let us know if we can assist you furt

    her.
  • Profile Image

    Answered by legionarytours on February 02, 2016 at 03:08 AM

    I would also like this feature!
  • Profile Image

    Answered by Carina on February 02, 2016 at 08:36 AM

    @legionarytours

    I have moved your request to a new thread as we aim at having only one user/question per thread.

    You can find it here:

    http://www.jotform.com/answers/762370 

    Let us know if we can assist you further.   

  • Profile Image
    JotForm Support

    Answered by NicholasWestley on June 19, 2016 at 08:21 AM

    Hi,

    Sorry for the delay, this is now possible.  You can enter the first date id as the start date in the date limits for the second field:

    The id for each datefield are listed at the bottom of the datetime limit wizard.

    Here is an example:

    https://form.jotform.com/61703028512951

    Regards,

    Nicholas