How to create a form that looks like a decision tree?

  • a4com
    Asked on March 22, 2018 at 8:17 AM

    Is it possible to create forms like a decision tree? If yes on a question you go in a different direction compared to No?

    For example:
    Q1: do you have kids?

    If Yes the next Q: How many?
    Next Q: How old are they etc.

    If No: Next Q: Do you own real estate?

    etc. etc.

    I want to build forms to do due diligence on companies.

  • Richie JotForm Support
    Replied on March 22, 2018 at 10:43 AM

    Yes, you can create those kinds of forms using the conditional logic.

    By the looks of your process, we need to use the SHOW/HIDE FIELD conditions.

    How to create a form that looks like a decision tree? Image 1 Screenshot 70

    I have made an example out of your sample.

    I placed a single choice question for the question "Do you have kids?".

    How to create a form that looks like a decision tree? Image 2 Screenshot 81

    then add two more questions and made them hidden.

    How to create a form that looks like a decision tree? Image 3 Screenshot 92

    Now we add the SHOW/HIDE conditions, if the question "Do you have kids?" is equal to "NO", we show the question "DO you own real estate?".

    How to create a form that looks like a decision tree? Image 4 Screenshot 103

    Then we add another SHOW/HIDE condition if "Do you have kids?" is equal to "YES". We show the question "How many?".

    How to create a form that looks like a decision tree? Image 5 Screenshot 114

    You can check this article for more information.-How-to-Show-or-Hide-Fields-Base-on-User-s-Answer

    Here  is a sample screen cast:

    How to create a form that looks like a decision tree? Image 6 Screenshot 125

    The link to my sample form:https://form.jotform.com/80804059862966

    Feel free to test it out, or clone it. -How-to-Clone-an-Existing-Form-from-a-URL

    Hope this information helps.

    Please let us know if you have further questions.


  • a4com
    Replied on March 22, 2018 at 2:08 PM

    My question is more than hiding some question. It really is responsive, but fpredefined like a decisiontree. At the end this becomes sort of a flowdiagram. Depending on the answers the next question is presented. And this goes over and over again. I am looking for a complete flexible process to do due diligence on companies.

    Is that possible with your solution? If so, which subscription should I use?



  • Richie JotForm Support
    Replied on March 22, 2018 at 2:22 PM

    By using the conditions you can achieve the form you wanted. Here is an updated screen cast with the condition that show the option when you select yes.

    On the question "How many?" I used the isFilled State, when an input is give or the input field is filled it will show the other question.

    How to create a form that looks like a decision tree? Image 1 Screenshot 30

    How to create a form that looks like a decision tree? Image 2 Screenshot 41

    Sample Form:https://form.jotform.com/80804059862966

    I'm not sure if I understood your question on "subscription"? You can create this from even if you're just in the Free plan. All the features are available on the free plan, you will only be given limits in form creation and submission.

    Hope this information helps.

    Please let us know if we can be of further assistance.