How can I show the selected image from the image picker in a quiz form?

  • SABL
    Asked on June 4, 2015 at 4:38 PM

    Question 2

    On the same tack, on question 4, I have some images that I want a user to make a choice between. I would like to show what image they selected on the page "Answer 4" like the other answers on that page, but can't seem to get it to work. I've attempted to change the text field's HTML to insert an <img src="{fieldname}" /> tag, but Jotform turns it into <img src="/{fieldname}" />, which breaks the image link. Any ideas?

  • raul
    Replied on June 4, 2015 at 5:52 PM

    I presume that you're referring to this widget, right?

    How can I show the selected image from the image picker in a quiz form? Image 1 Screenshot 30

    If so, another way to do this is adding 4 image fields to your form in the answer section and use conditional logic to show only the picture that was selected on the widget with a condition like the one below.

    How can I show the selected image from the image picker in a quiz form? Image 2 Screenshot 41

    Let us know if this makes sense or you need more clarification on this.

  • SABL
    Replied on June 5, 2015 at 8:44 PM

    Ahhh good idea! I tried this, and it worked perfectly. Thanks for your help!

  • Chriistian Jotform Support
    Replied on June 6, 2015 at 2:18 AM

    Hi SABL, 

    On behalf of my colleague, Raul, you are welcome.

     

    Glad to hear that your concern was solved.

     

    Regards.