Quando selecionar um valor, ocultar o mesmo valor em outro campo

  • Bichara_Advogados
    Perguntado em 2 de abril de 2024 às 16:19

    Eu tenho o formulário https://form.jotform.com/221014319121640 e no campo ÁREA PRINCIPAL, os usuários selecionam a ÁREA responsável. Algumas vezes, é necessário incluir "Outras Áreas Envolvidas" também.

    É possível quando escolher um valor na Área Principal, ocultar este mesmo valor no campo em "Outras Áreas Envolvidas"?

    Exemplo:

    Se Ambiental for selecionado no campo Área Principal, isso significa que Ambiental deve ficar oculto no campo "Outras Áreas Envolvidas".

    Essa regra vale para qualquer valor que for escolhido na Área Principal, o mesmo valor deve ser ocultado do campo "Outras Áreas Envolvidas"


    Quando selecionar um valor, ocultar o mesmo valor em outro campo Image 1 Screenshot 30

    Quando selecionar um valor, ocultar o mesmo valor em outro campo Image 2 Screenshot 41

  • Afzal Jotform Support
    Respondido em 2 de abril de 2024 às 18:45

    Hi Bichara,

    Thank you for reaching out to Jotform Support. I am currently using a translation to provide assistance, but if you want to get assistance in Portuguese language, we can forward your request to our Portuguese Support Team, but please note that it may take longer to receive a response.

    Unfortunately, it is not possible to hide an option inside the multiple-choice field or any other related field. A workaround for this would be adding a different multiple-choice field for each option and showing them based on user selection. 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 (Short Text fields are used in this example).
    3. Click on the Type a Question text and change it to the question you want to use.

    Quando selecionar um valor, ocultar o mesmo valor em outro campo Image 1 Screenshot 40

    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.
    4. Set the conditions like you see below:
    • IF: Do you have a dog or a cat? (this is the question that has the choice that the form submitter needs to select)
    • STATE: Is Equal To
    • VALUE: Dog (the first choice)
    • DO: Show
    • FIELD: What is the name of your dog? (the follow-up question that you want to show)

    Quando selecionar um valor, ocultar o mesmo valor em outro campo Image 2 Screenshot 51

    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:

    Quando selecionar um valor, ocultar o mesmo valor em outro campo Image 3 Screenshot 62

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