Conditionally show images based on previously selected image

  • Profile Image
    Perlman
    Asked on October 16, 2017 at 02:18 PM

    Hello,

    Is it possible to give an image element a url link that links to another element in the same form?

    For example:

    Link element one of the images on the first page to page 2.

    1508177898Widget Screen Shot4.JPG

  • Profile Image
    david
    Answered on October 16, 2017 at 02:30 PM

    If you mean that you would like to show images later in the form based on an image selected in the form, this can be done using a an image radio button or image check box widget to make the selection:

    https://widgets.jotform.com/widget/image_radio_buttons

    https://widgets.jotform.com/widget/image_checkboxes

    Add all your images to the form using image fields, then conditionally show the appropriate images based on the users selection:

    https://www.jotform.com/help/316-How-to-Show-or-Hide-Fields-Base-on-User-s-Answer

    If there is something else you were looking to do, let us know and we will be happy to help.

  • Profile Image
    Perlman
    Answered on October 16, 2017 at 02:48 PM

    Sorry, the question I asked wasn't very clear.

    I am considering linking an image element to a specific page in the same form.

  • Profile Image
    david
    Answered on October 16, 2017 at 02:49 PM

    I am not quite sure how you are trying to link the image element to a specific page.  How are the two being linked?  Do you want to show and image on the page, select an image and go to a specific page or something else?

  • Profile Image
    Perlman
    Answered on October 16, 2017 at 02:51 PM

    I would like the user to be directed to a page on the form if the image is clicked.

  • Profile Image
    david
    Answered on October 16, 2017 at 02:52 PM

    For that, you can still use the aforementioned widgets, but would use a "Skip page" condition instead of a show/hide condition:

    https://www.jotform.com/help/350-How-to-Skip-Pages-Using-Conditional-Logic

  • Profile Image
    Perlman
    Answered on October 16, 2017 at 03:07 PM

     How do I make the image "clickable"?

  • Profile Image
    david
    Answered on October 16, 2017 at 03:10 PM

    This can be done using a an image radio button or image check box widget to make the selection:

    https://widgets.jotform.com/widget/image_radio_buttons

    https://widgets.jotform.com/widget/image_checkboxes

    Both widgets use URL's to load images, so the image URL would need to be used in the condition.  For example, if one of the images added to the widget is www.jotform.com/image, it would require using a condition like "if image radio button widget is equal to www.jotform.com/image skip to page 3".

  • Profile Image
    Perlman
    Answered on October 16, 2017 at 03:14 PM

    Ok, I understand.

    Is there a way to somehow accomplish the same thing, but use the regular image element instead of the widgets?



  • Profile Image
    david
    Answered on October 16, 2017 at 03:20 PM

    Image fields cannot be selected so there would be no way to set up the conditions you are looking for.  You can use image fields to upload your images, then use the URL generated for the uploaded images as the URL's in the widget. 

  • Profile Image
    Perlman
    Answered on October 16, 2017 at 03:34 PM

    I appreciate your help.

    Thank you,

    Spencer