Questão se relacionando com a anterior

  • devcpadv
    Perguntado em 15 de fevereiro de 2024 às 13:34

    Boa tarde, gostaria de saber como uma questão pode se relacionar com a anterior da seguinte maneira:

    Pergunta 1 - Se possui filial, quantas?

    Quando o usuário inserir o número indicando a quantidade, a questão abaixo deve abrir a quantidade de campos referente a esse número.

    Segue em anexo como gostaria que ficasse.

    Jotform Thread 11921601 Screenshot
  • Danilo Jotform Support
    Respondido em 15 de fevereiro de 2024 às 16:04

    Hi devcpadv,

    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 just want to confirm if I got your concern correctly. Are you trying to show the number of fields in the Input table element based on the selection from the dropdown? Unfortunately, when you use the Input table Element and use conditional logic to show that it will show all the input tables.

    I would suggest adding multiple Input tables Element and name each row Sócio 1, Sócio 2, Sócio 3, Sócio 4. Let me show you how:

    1. Click on the Add Form Element menu on the left side of the Form Builder page.
    2. Under the Basic tab, scroll down and drag and drop the Input table element to your form.

    Questão se relacionando com a anterior Image 1 Screenshot 50

    Then, you need to add Dropdown option for the selection of how many they want:

    Questão se relacionando com a anterior Image 2 Screenshot 61

    After that, you need to create a Show/Hide Conditional logic based on the selection in the dropdown element. Let me show you how:

    1. In Form Builder, in the orange navigation bar at the top of the page, click on Settings.
    2. Click on Conditions on the left of the page.
    3. Now, click on Add a New Condition and then click on Show/Hide Field.
    4. Set the conditions like you see below:
    • IF: How many
    • STATE: Is Equal To
    • VALUE: 1
    • DO: Show
    • FIELD: Quadro societario 1 and so on. 

    Questão se relacionando com a anterior Image 3 Screenshot 72

    Here's the result of my demo form :

    Questão se relacionando com a anterior Image 4 Screenshot 83

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