Welcome to the LimeSurvey Community Forum

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

Display images in dropdown answers

  • MaJu24
  • MaJu24's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 2 weeks ago #263458 by MaJu24
Display images in dropdown answers was created by MaJu24
(Write here your question/remark)Your LimeSurvey version: Version 5.6.59+240416
Own server or LimeSurvey hosting: Own Server
==================
In my survey I want to display little images next to the answers of a dropdown/select(multiple answers, single choice) question.
Unfortunately html ignores images in <option> tags. I tried a few workarounds, but could not get it to go.

For clarification, what I want to achieve:

Question 1 (Dropdown/Select)
 - [img1] Answer 1
 - [img2] Answer 2
 - [img3] Answer 3


Thanks in advance!

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 2 weeks ago #263489 by holch
Replied by holch on topic Display images in dropdown answers
I don't think it is possible to show images within a html dropdown. You would have to try to create your "own" dropdown via layers and Javascript, I guess.

stackoverflow.com/questions/4941004/putt...s-in-a-dropdown-list

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
1 year 1 week ago #263720 by DenisChenu
Replied by DenisChenu on topic Display images in dropdown answers

I don't think it is possible to show images within a html dropdown. You would have to try to create your "own" dropdown via layers and Javascript, I guess.

stackoverflow.com/questions/4941004/putt...s-in-a-dropdown-list
 
Wah !
This solution is just great : binnyva.blogspot.com/2006/01/icons-for-s...menu-options-in.html

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose