How can I avoid that people select wrong dates?

  • Profile Image
    hotelmeridasantiago
    Asked on October 20, 2012 at 03:41 PM

    Problem is that sometimes people select an departure date which is in front of an arrival date.

     

    In that case it would be nice if the form cannot be submitted and comes back with a message:

     

    "Departure date needs to be after Arrival date."

     

    More or less same system than with required fields.

     

    Is this possible with Jotform?

     

    Muchas gracias,

    Jan

     

    By the way: I have great experience with Jotform and this is the reason I added

    Jotform - easy and fast form builder

    on the subpage Links of my website Hotel boutique Merida Santiago

  • Profile Image
    Deygus
    Answered on October 20, 2012 at 04:54 PM

    I apologize but unfortunately I dont really see this being possible due to the way most datepickers are programmed. However, there may be a way to work around this through the use of some custom scripting but that would also require downloading your form source and can only be done if you know some programming or are willing to hire someone as this would be done outside of JotForm.

  • Profile Image
    Deygus
    Answered on October 20, 2012 at 05:05 PM

    A possible solution that I just thought of to avoid them accidently selecting the departure date ahead of the arrival date would be to use some Conditional Logic and hide the Departure Date if the Arrival Date has not been filled in first by the customer.

  • Profile Image
    hotelmeridasantiago
    Answered on October 20, 2012 at 06:00 PM

    Hola Deygus,

    Thanks for your answer. Appreciated much. 95% of my page visitors fill in the form correct. I wanted to make this 99.9%. The problem is that departure date needs to be after arrival date. This is logical, but some of my visitors make a mistake with this.

    I will follow you suggestion and download the source code and will do some custom scripting when I have some time to do that.  When I have the solution I will post it.

    Thanks again,

    Jan

  • Profile Image
    abajan
    Answered on October 20, 2012 at 07:13 PM

    Hi Jan

    Although our conditions wizard currently does not have the ability to compare entries made in separate fields, I believe a ticket requesting that comparisons between date fields be added to the wizard, for very reason you have stated, was submitted a few months ago. However, I can't currently give any information on if or when it will become a reality.


    Wayne

  • Profile Image
    abajan
    Answered on October 20, 2012 at 07:16 PM

    By the way, we really appreciate your adding us to your links page! :)

  • Profile Image
    hotelmeridasantiago
    Answered on October 20, 2012 at 08:26 PM

    Hola Wayne,

    Thanks for the additional information on the ticket requesting. It could be a nice addition to add date logic.

    I tried a few of formbuilders who got good critics too, but Jotform is most handy to use and is also fast.

    It can be good news for other people who are looking for a good formbuilder to know this ;-).

    All best, Jan