Date calculation on form based on user input

  • Profile Image
    sunilv
    Asked on September 10, 2013 at 03:47 PM

    Is it possible to show a due date based on a user entered date elsewhere on the form?

     

    That is, a user enters the date in a date field. Then, below it (in HTML) appears the following:

    "Based on the date of your event above, you must submit all forms by X"

    The "X" would be calculated as 10 business days before the date the user entered.

     

    All of this should happen on a live form before the user hits the "Submit" button.

    Is there a way to do this?

    Thank you in advance.

  • Profile Image
    Mike_T
    Answered on September 10, 2013 at 04:24 PM

    Thank you for contacting us.

    Now we support conditional logic on forms based on current date with user input.

    We do not have an option to change the "X" based on input, but you can use pre-defined answers for calculated dates.

    For example, please check the following form:

    http://form.jotform.co/form/32526274965866

    It has the following conditions:

    Where today +1 means tomorrow.

    Today +2 means current date + 2 days, and the current date is referring to the form access date. In other words, it is calculating the dates.

    You can Clone mentioned above form to check the back end.

    The following rules are available for both Birth Date Picker and DateTime fields from Quick Tools.

    If something is not clear, please let us know. We will be happy to help.