Can I populate a time field according to the answer to a previous field?

  • Profile Image
    Rosaluo
    Asked on June 12, 2013 at 03:37 PM

    Hi,

    I am woring on a big form. The form would ask people if they get sick from a meal, the time when they got sick, and the food history in the past 3 days before illness. I want to populate the time of the past 3 days according to the sick time.

    For example, I want the first date of food history would be populated as the same date when they got sick. And the second date would be one day before the date when they got sick.

     

    Is it possible to have the date fields populated according to what people have answered earlier in the form?

    Thank  you

     

     

     

  • Profile Image
    jonathan
    Answered on June 12, 2013 at 06:18 PM

    Hi,

    Yes. You can pre-populate a form with values coming from a previous form using the Custom URL in the Thank You page settings.

    Something similar to this form http://www.jotformpro.com/form/31626744740960? you can test.

    Please inform us if you need further assistance.

    Thanks.

  • Profile Image
    Rosaluo
    Answered on June 13, 2013 at 11:28 AM

    Hi,

    Do I have to use two sepearte forms in order to populate the values? I would like to populate the fields which are in the same form but on a later page. If possible, I want to make edition on my existing form instead of generating two new forms again.

    If possible, how can I populate the fields?

    Thank you

     

     

  • Profile Image
    abajan
    Answered on June 13, 2013 at 11:44 AM

    This might be possible but it would require your embedding the form's full source into a web page and adding a script to the said page. The functionality demonstrated in the form in this guide is somewhat similar to what you want to happen in your form, except that in your form the population would be automatic. I think that prepopulating date fields could be kind of tricky though.

    Nevertheless, we'll have another look at your form and see if we can come up with something.

    Thanks