Dependencies - Answers

  • annika229299
    Gefragt am 14. Oktober 2021 um 08:51

    Hello!

    I would like to create a survey for research purposes. In the first step I would like the people to select their problems with multiple choice and in the next step I would like to prioritize them. How can I make it so that in the second step (prioritization) only the items (answers) selected in step 1 appear?


    With kind regards

    Annika

  • Ivaylo Jotform Support
    Geantwortet am 14. Oktober 2021 um 10:02

    You can create the fields for the second step and hide them. Then you can just use conditions to show them.

    In order to create the conditions, you can check and follow this guide:

    https://www.jotform.com/help/316-how-to-show-or-hide-fields-base-on-users-answer/

    Let us know if you need any further assistance.

  • Marco Jotform Support
    Geantwortet am 14. Oktober 2021 um 11:05

    Hello there,

    Based upon the number of problems you'd like to include on the list, the form could become pretty complex to set up.

    On my example, I assumed a list of 4 problems users have to choose from.

    1634222913 616843410d6d8  Screenshot 10


    Then I added an Orderable List widget, to allow users to prioritize their choices:

    1634223057 616843d102fc5  Screenshot 21


    Now, the problem is that the Orderable List can only be populated from the Form Builder. We cannot populate it through conditional logic.

    This means that you need to create as many hidden Orderable Lists as needed to cover all the possible scenarios, then show only the correct one, based upon the problems chosen by the user.

    For example, we'll show the full Orderable List in case users select all of the 4 problems in the first step, through this condition:

    1634223656 61684628236b6  Screenshot 32


    While if users select 3 out of the 4 problems, we need to create all the possible Ordeder Lists, leaving out a different problem every time, and show the correct Odered List through the conditional logic:

    1634223681 61684641a1680  Screenshot 43


    Your form will work in this way:

    1634223791 616846af6bf71 ordered Screenshot 54


    You can test and clone my demo form to inspect it deeper if you need:

    https://form.jotform.com/212864476026964


    Let us know if you need any further assistance,

    Regards