automatically choose certain answers based on clients form answers

  • Profile Image
    drshu.medical
    Asked on November 15, 2021 at 03:22 AM

    Hello,

    How do I have some form of conditional logic or something that if they select certain answers, it will autopopulate an answer in a hidden field? For example: If they choose '1 pod daily'

    1636964405_619218357db5a_

    I want the form to automatically choose the quantity/frequency of '1 pod daily' and also 3 month quantity of 'up to 100 pods' as this is something that will be reflected on the PDF generated. So essentially, if they choose the first option, the form should generate the first options of the other fields and if they choose the second, the form should generate the second options etc.

    1636964457_61921869f1b1f_

    thank you for your help

  • Profile Image
    gokmen
    Answered on November 15, 2021 at 05:59 AM

    Hi,

    You should create an update/calculate field condition. You can follow the steps below.

    1636973660_61923c5cc6982_

    You can think that you have a form like this. The second field is hidden.

    1636973717_61923c9514849_

    On the settings page, you should create an update/calculate field condition like above. When the first field is filled, you can copy the first field value to the second. After that in your pdfs look like below.

    1636973841_61923d1178d17_

    Also, your tables will look like below.1636973865_61923d29a6a57_

    If you want, you can use textbox instead of the second single choice field.

    Hope this information helps.

    Please let us know if you have any further questions.


  • Profile Image
    drshu.medical
    Answered on November 30, 2021 at 05:50 AM

    I did it as instructed but the fields didn't auto fill.

    I resubmitted the forms and I also tested but it didn't autofill in the table fields that I want it t

    1638269274_61a6015ab9864_

    1638269385_61a601c9399c7_

    1638269081_61a60099d65a2_

    1638269311_61a6017f36c7f_

    1638269201_61a60111882eb_

    the tables are still empty

  • Profile Image
    Yau
    Answered on November 30, 2021 at 07:01 AM

    Hi,

    I have created a demo for you: https://form.jotform.com/213267779172061

    You can use 'Calculate a field's value' to auto-fill another field base on answers in the first field:

    1638273627_61a6125be1432_

    1638273876_61a6135493143_

    You can apply the same concept to your form.

    Let us know if you need further assistance.

  • Profile Image
    drshu.medical
    Answered on November 30, 2021 at 03:50 PM

    so why when I followed the original support answer above it didn't work?

  • Profile Image
    drshu.medical
    Answered on November 30, 2021 at 04:04 PM


  • Profile Image
    Jeric
    Answered on November 30, 2021 at 08:14 PM

    Hi there,

    Thanks for getting back!

    Sorry to hear that it did not work out for you. Can you share the form URL so we can check it and make sure that we will be able to accomplish what you wanted to achieve?

    We'll wait for your response.

    Regards,

  • Profile Image
    drshu.medical
    Answered on November 30, 2021 at 08:24 PM

    hello the second method worked fine thanks