How to create a test to determine the most selected option?

  • Margarida_Palmira
    Perguntado em 22 de fevereiro de 2024 às 13:38

    Olá

    Quero criar um teste em que se a pessoa responder a maioria das perguntas com a opção A, recebe o resultado A.

    Para a maioria com a opção B, recebe o resultado B, assim por diante.

    Como configuro o formulário dessa forma?


    Muito obrigada

  • Edwin Jotform Support
    Respondido em 22 de fevereiro de 2024 às 16:23

    Hi Palmira,

    Thanks for reaching out to Jotform Support. Unfortunately, our Portuguese Support agents are busy helping other Jotform users at the moment. I'll try to help you in English using Google Translate, but you can reply in whichever language you feel comfortable using. Or, if you'd rather have support in Portuguese, let us know and we can have them do that. But, keep in mind that you'd have to wait until they're available again.

    Now, let me help you with your question. I understand you're looking to create a form that determines the most selected option. This can be done using conditions, but it might require many conditions based on the number of questions and options. For instance, if you have 10 questions with 4 options each, you'll need 40 conditions.

    Could you please let us know the number of questions and options you plan to include in your form? This information will help us provide a suitable solution.

    Once we hear back from you, we'll be able to move forward with a solution.

  • Margarida_Palmira
    Respondido em 22 de fevereiro de 2024 às 17:12

    São 5 questões com 5 opções cada.

    Já criei as condições, mas mesmo assim está dando erro e não está direcionando para o resultado correto. Você poderia conferir no link aonde estou errando?

    https://form.jotform.com/240526122917048


    Obrigada

  • Edwin Jotform Support
    Respondido em 22 de fevereiro de 2024 às 18:59

    Hi Palmira,

    Thanks for getting back to us. I've checked your form and noticed that your conditions are set up to trigger if any of the conditions match. However, it should be set up to trigger only if all the conditions are matched.

    How to create a test to determine the most selected option? Image 1 Screenshot 170

    For example, the first condition should check if E is greater than all the others (A, B, C, and D) before showing result E. Currently, if E is just greater than one of them, it will still show E, even if it's not the greatest overall. It's easy to change it. Let me show you how:

    1. In Form Builder, click on Settings at the top.
    2. Click on Conditions on the left.
    3. Hover over the condition and click on the Pencil icon.How to create a test to determine the most selected option? Image 2 Screenshot 181
    4. Scroll down and click on the If Rules Are Matched dropdown and select All.
    5. Click Save.How to create a test to determine the most selected option? Image 3 Screenshot 192
    6. Repeat the steps for the other conditions.

    However, the other issue is dealing with ties. Currently, your conditions change the Thank You page, but it can only show one page upon submission. So, if there are ties, it can't show multiple results. Instead, you could set up a Heading field in your form to display the result, showing all options with the highest selection. Additionally, a simpler way to determine the option selected most is by creating a Form Calculation field to calculate the maximum number of selections from the options and using conditions to determine which option equals that maximum number. Let me walk you through it, step by step: 

    Setting up the Heading Field:

    1. In Form Builder, click on Add Form Element on the left.How to create a test to determine the most selected option? Image 4 Screenshot 203
    2. Click on Heading under Basic.
    3. Type in the result into the Heading field.How to create a test to determine the most selected option? Image 5 Screenshot 214
    4. Repeat the steps for each of your results.How to create a test to determine the most selected option? Image 6 Screenshot 225

    Setting up the Form Calculation Field:

    1. In Form Builder, click on Add Form Element on the left.How to create a test to determine the most selected option? Image 4 Screenshot 203
    2. Click on Widgets and then Form Calculation.How to create a test to determine the most selected option? Image 8 Screenshot 247
    3. Click on the Functions icon and select Max().How to create a test to determine the most selected option? Image 9 Screenshot 258
    4. Click on Add Field and select one of the options.
    5. Repeat the steps for the other options.
    6. Add commas between each option.
    7. Click on the Comma icons so they are not treated as strings.
    8. Click Save. How to create a test to determine the most selected option? Image 10 Screenshot 269
    9. Click on the Gear icon.
    10. Click on Advanced.
    11. Toggle the Hide Field to ON.How to create a test to determine the most selected option? Image 11 Screenshot 2710

    Setting up the Show/Hide Field Conditions:

    1. In Form Builder, click on Settings at the top.
    2. Click on Conditions on the left.
    3. Click on Add Condition.How to create a test to determine the most selected option? Image 12 Screenshot 2811
    4. Click on Show/Hide Field.How to create a test to determine the most selected option? Image 13 Screenshot 2912
    5. Create the condition as shown below:How to create a test to determine the most selected option? Image 14 Screenshot 3013
    6. Click on Save.How to create a test to determine the most selected option? Image 15 Screenshot 3114
    7. Repeat the steps for the other options.How to create a test to determine the most selected option? Image 16 Screenshot 3215

    For more information, check out our guides on How to Show or Hide Fields Conditionally and How to Perform Calculations Using a Widget.

    Give it a try and let us know how it goes.