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

    How to pre-fill a date field based on an another field's input?

    Asked by kurtarild on May 20, 2017 at 05:45 AM

    I have a booking form



    Depending on what kind of tour you chosse the time of day and minute shall be pre - filled, example,, if you choose Fishing trip with Arctic Princess, From Time: 10:00 and to Time: 13:00

    If you choose Whalesafari, time shall be 09:30 - 14:30 and so on....



    Kurt Arild

    Page URL:

  • Profile Image
    JotForm Support

    Answered by AIDAN on May 20, 2017 at 11:19 AM

    That should be possible by following our guide on how to insert text/calculation into a field using conditional logic here: https://www.jotform.com/help/268-Conditional-Logic-Inserts-Text-Calculation-Into-A-Field

    Furthermore, a general guide on creating smart forms using conditional logic can be found here: https://www.jotform.com/help/57-Smart-Forms-Using-Conditional-Logic

    I hope this helps. If you need further assistance please let us know. Thank you.

  • Profile Image
    JotForm Support

    Answered by aubreybourke on May 20, 2017 at 12:49 PM

    Your form is very complicated. I would suggest breaking down the date and time fields. Separating your date calculations from your time calculations would make the conditional logic a little easier.


  • Profile Image
    JotForm Support

    Answered by aubreybourke on May 20, 2017 at 01:53 PM

    I cloned your form. But, I cant seem to get it to work. I can see you are showing a field instead of update/calculating as a work around.

    Does anyone know if the update/calculate function supports the date/time or even just time fields?


  • Profile Image
    JotForm Support

    Answered by aubreybourke on May 21, 2017 at 06:48 AM

    I managed to retrieve your form values and insert them into a new text field.


    Maybe you should alter the surveying values? For example instead of a single value like 1800, you could change the surveying value to "9:30-14:30"

    1. Drag and drop a text field.

    2. Change the radio button surveying values to be the full duration of a trip

    3. Update/Calculate a field. And after selecting the field click on the field once (so that it says A-Z). This converts the variable into a string. This is important because a number wont work well for a from/to time value.


     4. Preview! And if this is what you want, then you need to change the other surveying values as well.