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

    Date calculation on form based on user input

    Asked by sunilv 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.

    date field due date date calculation calculate dates
  • Profile Image
    JotForm Support

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