How can I populate a form with a dropdown selection.

  • Alexis Moses
    Asked on August 13, 2020 at 1:37 PM

    Hey JotForm Team.

    Can I populate a form based on a dropdown where the user makes a selection and then populates the form with a various amounts of questions and input boxes?


    Can I tag those boxes with meta data to be extracted for later use?


    Alexis 

  • John Support Team Lead
    Replied on August 13, 2020 at 3:17 PM

    Hello Alexis - I'm afraid it's not possible to create fields when the form is published. What's possible is to add the fields while on build mode. Then just use conditions to show or hide them based on the dropdown selection.

    To better illustrate, I created a demo form. Here's how it's done:

    1. Add the DropDown fields with options

    How can I populate a form with a dropdown selection. Image 10

    2. Next, add the other fields

    15973459062511109 2 Screenshot 21

    3. Lastly, create conditions to show/hide these fields based on the option selected from the dropdown. Here's an example:

    15973460202511109 3 Screenshot 32

    So based on this condition, we will show Question 1 if Question 1 is selected from the dropdown.

    Here's a link to the demo form: https://form.jotform.com/202256365497058 

    GUIDEHow-to-Show-or-Hide-Fields-Based-on-User-s-Answer 

    Can I tag those boxes with meta data to be extracted for later use?

    May we know where do you plan to use the data? I'm asking because if you only like the data to be stored somewhere that you can view at a later date, I believe the form can do just that. When the user submits the form, the entries will be stored on our servers and can be accessed via the form's Submissions page

    Here's a guide on How-to-View-Form-Submissions.

  • Alexis Moses
    Replied on August 14, 2020 at 9:28 AM
    Thanks for the quick reply,
    We would extract data to our servers as we have to stay HIPAA compliant.
    I know there is a Jotform API. Can I call the API on each form submitted and extract the data? Can we tag each input field so we can format information properly?
    Alexis
    ________________________________
    ...
  • John Support Team Lead
    Replied on August 14, 2020 at 10:14 AM

    Thank you for the additional details. And yes, you can use Jotform API to fetch/export submission data from a HIPAA form.  You may refer to our API documentation and try using a hipaa-api.jotform.com domain on your command string to access the submission data.

    Another way is to use Webhooks in case you're familiar with it. This allows you to get your form submissions posted to a URL. The data will be posted as a multipart/form-data content type.

    Here's a guide on How-to-Setup-a-Webhook-with-JotForm.