automatically choose certain answers based on clients form answers

  • drshu.medical
    Asked on November 15, 2021 at 3: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  Screenshot 10

    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  Screenshot 21

    thank you for your help

  • Gokmen JotForm Developer
    Replied on November 15, 2021 at 5:59 AM

    Hi,

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

    1636973660 61923c5cc6982  Screenshot 10

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

    1636973717 61923c9514849  Screenshot 21

    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  Screenshot 32

    Also, your tables will look like below.1636973865 61923d29a6a57  Screenshot 43

    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.


  • drshu.medical
    Replied on November 30, 2021 at 5: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  Screenshot 10

    1638269385 61a601c9399c7  Screenshot 21

    1638269081 61a60099d65a2  Screenshot 32

    1638269311 61a6017f36c7f  Screenshot 43

    1638269201 61a60111882eb  Screenshot 54

    the tables are still empty

  • Yau_C
    Replied on November 30, 2021 at 7: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  Screenshot 10

    1638273876 61a6135493143  Screenshot 21

    You can apply the same concept to your form.

    Let us know if you need further assistance.

  • drshu.medical
    Replied on November 30, 2021 at 3:50 PM

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

  • drshu.medical
    Replied on November 30, 2021 at 4:04 PM


  • Jeric JotForm Support
    Replied on November 30, 2021 at 8: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,

  • drshu.medical
    Replied on November 30, 2021 at 8:24 PM

    hello the second method worked fine thanks