Permitir que os usuários adicionem entradas dinamicamente

  • TreinamentoFS
    Perguntado em 17 de março de 2025 às 10:19

    Preciso criar um formulario para um curso onde vincule a quantidade de funcionarios indicada pelo usuario e o numero de campos (nome, rg, cpf e função) de acordo com essa quantidade.

    Se ele informar que são 2 funcionarios, abre automaticamente 2 grupos de campos, se informar 08 funcionarios abrirá 8 campos conforme figura anexa

    Grato

    Permitir que os usuários adicionem entradas dinamicamente Image 1 Screenshot 20

    Flavio Luiz Antonio.


    Jotform Thread 25295481 Screenshot
  • Deanne Jotform Support
    Respondido em 17 de março de 2025 às 12:33

    Hi Flavio,

    Thanks for reaching out to Jotform Support. Our Portuguese Support agents are busy helping other Jotform users right now, so 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, it might take a while until they're available again.

    Now, coming back to your question, Jotform's Conditions feature lets you show questions based on the answers that people gave. Let me show you how to set it up:

    1. On your My Forms page, hover your mouse over your form and click on Edit Form.

    2. In Form Builder, click on the Add Form Element menu and drag-drop the fields you want to use as follow-up questions. I used Short Text fields in this example.

    3. Click on the Type a Question text and change it to the question you want to use.

    4. Now, right-click on the fields, and in the menu that opens, click on Hide.

    Permitir que os usuários adicionem entradas dinamicamente Image 1 Screenshot 50

    Now, let's set up the conditions:

    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.

    Permitir que os usuários adicionem entradas dinamicamente Image 2 Screenshot 61

    4. Set the conditions as you see below:

    Permitir que os usuários adicionem entradas dinamicamente Image 3 Screenshot 72

    Set up Conditions for all of the choices for your question. Check out the screencast below to see how your form will work after setting up the Conditions:

    Permitir que os usuários adicionem entradas dinamicamente Image 4 Screenshot 83

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

  • TreinamentoFS
    Respondido em 17 de março de 2025 às 16:25

    Acho que vc não entendeu....

    Não quero simplesmente ocultar ou fazer aparecer quando facho uma das multiplas escolhas.

    Eu quero que ele seja interativo, automatico.

    Se eu informar que é 1 funcionário, quero que só apareça 01 grupo de campos para preenchimento (nome, rg, cpf e função). 

    Se eu informar que são 3 funcionários, quero que apareça 03 grupos de campos para preenchimento (nome, rg, cpf e função). 

    Se eu informar que são 10 funcionários, quero que apareça 10 grupos de campos para preenchimento (nome, rg, cpf e função). 

    A exibição dos campos (nome, rg, cpf e função) tem que variar de acordo com a quantidade de funcionarios escolhida.

    Grato

  • Deanne Jotform Support
    Respondido em 17 de março de 2025 às 17:04

    Hi Flavio,

    If I understand correctly, you want it to be dynamic. You don't want to create the fields one by one and show or hide them, instead, you want the fields to automatically show when the users would like to add more entries. You can use the Configurable List widget for this. Here's how to add it to the form:

    1. In Form Builder, click on the Add Element menu on the left side of the page.
    2. Under the Widgets tab, drag and drop the Configurable List widget into your form, or just click on it to add.
    3. In the menu on the right, customize the Fields Configuration section according to the syntax below.
    {label} : {type} : {placeholder}

    Permitir que os usuários adicionem entradas dinamicamente Image 1 Screenshot 20 The syntax I showed you above is the main syntax of Configurable List widget, to learn more about how to write it specifically for different types, check out the How to Set Up the Configurable List Widget guide, which explains and provides examples of how it should be written.

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