-
Margarida_PalmiraPerguntado 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 SupportRespondido 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_PalmiraRespondido 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 SupportRespondido 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.
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:
- In Form Builder, click on Settings at the top.
- Click on Conditions on the left.
- Hover over the condition and click on the Pencil icon.
- Scroll down and click on the If Rules Are Matched dropdown and select All.
- Click Save.
- 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:
- In Form Builder, click on Add Form Element on the left.
- Click on Heading under Basic.
- Type in the result into the Heading field.
- Repeat the steps for each of your results.
Setting up the Form Calculation Field:
- In Form Builder, click on Add Form Element on the left.
- Click on Widgets and then Form Calculation.
- Click on the Functions icon and select Max().
- Click on Add Field and select one of the options.
- Repeat the steps for the other options.
- Add commas between each option.
- Click on the Comma icons so they are not treated as strings.
- Click Save.
- Click on the Gear icon.
- Click on Advanced.
- Toggle the Hide Field to ON.
Setting up the Show/Hide Field Conditions:
- In Form Builder, click on Settings at the top.
- Click on Conditions on the left.
- Click on Add Condition.
- Click on Show/Hide Field.
- Create the condition as shown below:
- Click on Save.
- Repeat the steps for the other options.
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.