Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Use images rather than text answer options

  • Helenmd
  • Helenmd's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 6 months ago #142275 by Helenmd
Hi,

We have just (finally!) upgraded to 2.50+ (build 160718) and one of the things I'd like to be able to do is allow the use of images in a question type, for example, select any 3 that you feel do not belong to this group.

Is this possible? I know I can do it with multiple choice/lists etc using text, but I'd like to use an image instead of the text/
The topic has been locked.
More
7 years 6 months ago #142277 by Deusdeorum
Replied by Deusdeorum on topic Use images rather than text answer options
If I understand you correctly you just want to substitute the answer text for example in a multiple choice question to a image. You could place something like this in the answer box <img alt="" src="/path/to/the/picture" style="height: 150px"/>. If you upload a picture to your survey through the question text menu you can easily get the /path/to/the/picture from there
The following user(s) said Thank You: Helenmd
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 6 months ago #142281 by tpartner
Replied by tpartner on topic Use images rather than text answer options
To expand a bit on Deusdeorum's answer a bit...I also insert a hidden span element with the answer text so you can see that in the exported data.

Code:
<span style="display: none;">Option 1</span>
<img alt="" src="/path/to/picture-1.png" />

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: Helenmd
The topic has been locked.
  • Helenmd
  • Helenmd's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 6 months ago #143018 by Helenmd
Replied by Helenmd on topic Use images rather than text answer options
Thank you very much both, it's much appreciated and exactly what I was looking for.

Helen
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose