What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.

  • Profile Image

    How to show / hide image field based on a selected dropdown choice

    Asked by hughdal on June 18, 2015 at 02:33 PM

    Can I display a certain image based on a certain selection in a dropdown? Thanks

  • Profile Image

    Answered by Ben on June 18, 2015 at 04:07 PM

    To do that you would need to:

    1. add the images to your jotform

    - for this we use the Image field from Form Tools

    Once you add all of the images that should be shown or hidden, you go onto setting up the conditions as shown here: How to show or hide a field in the form based on the other field input or selection

    So basically the image field is treated as any other field on your form.

    So we have the dropdown with our options added and we go to conditions

    select Show / Hide a form field option

    and click on Next.

    Now we set up the conditions to show us the fields that we want - when we want them.

    You can see this in action here: http://form.jotformpro.com/form/51685102878967 and you can clone that form to your own account if you wish by following the steps here: How to Clone an Existing Form from a URL