How to conditionally show a list of images?

  • Robsol
    Perguntado em 14 de maio de 2024 às 11:31

    Eu gostaria de adicionar em meu formulario uma função.

    Eu eu selecionar uma "marca" Aparece um outro menu relativo a essa "marca"

    E ai eu escolho uma relação de imagens dentro de cada marca.
    Consigo fazer isso?


    Ex:

    https://form.jotformz.com/form/23404538537657

  • Neil Jotform Support
    Respondido em 14 de maio de 2024 às 14:02

    Hi Robsol,

    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, coming back to your question: Yes, you can do this by adding another field, say, the Dropdown field, and enter your options (brand names, etc.).

    1. In Form Builder, click on the Add Form Element.
    2. Scroll down to Basic Elements and add the Dropdown field.

    How to conditionally show a list of images? Image 1 Screenshot 60Then, to choose from a list of images, you can use the Image Picker widget. 

    1. Click on the Add Form Element again, and go to the Widgets tab.
    2. Search for Image Picker and add it to your form.

    How to conditionally show a list of images? Image 2 Screenshot 71After that, create a condition to show the widgets when a specific Brand is selected on the dropdown field. Here's how to do it:

    1. In Form Builder, click on Settings at the top.
    2. Select Conditions on the left.
    3. Add a new condition and choose Show/Hide Field.

    How to conditionally show a list of images? Image 3 Screenshot 824. Then, create the conditions to show the Image Picker widget if a certain Brand is selected in the Dropdown field. Check out my example below:

    How to conditionally show a list of images? Image 4 Screenshot 93That's it. Here's the result:

    How to conditionally show a list of images? Image 5 Screenshot 104 Feel free to check out my demo form here. You can also clone it to further test it. We have a guide here that you can check out on how to clone an existing form from a URL.

    Give it a try and let us know if you need any other help.

  • Robsol
    Respondido em 15 de maio de 2024 às 14:22

    Perfect. Thanks