Feature Request: Generate an error message between 2 date fields if a condition is not met.

  • Profile Image
    rsvpfree
    Asked 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?

  • Profile Image
    Sean
    Answered 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
    rsvpfree
    Answered on February 20, 2015 at 10:30 AM

    Thanks Sean. I will look forward to this!

  • Profile Image
    Carina
    Answered 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
    legionarytours
    Answered on February 02, 2016 at 03:08 AM

    I would also like this feature!
  • Profile Image
    Carina
    Answered 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
    NicholasWestley
    Answered 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