Welcome to the LimeSurvey Community Forum

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

Having text under images when using Image select multiple choice

More
2 weeks 6 days ago - 2 weeks 6 days ago #274397 by superuser_does
Please help us help you and fill where relevant:
Your LimeSurvey version: 7.0.0 RC1 (though this is mis-reported on the dashboard as LimeSurvey Community Edition Version 6.17.1)
Own server or LimeSurvey hosting: Own server
Survey theme/template: Fruity Twenty Three
==================

The example for "Image select multiple choice" suggests you can have a label under the image:
 

In my own testing though, it seems LimeSurvey is taking the value of a subquestion and injecting it into the src attribute of img. As such, I cannot put a label after it or it breaks the image.
This is the kind of HTML output it creates:
Code:
<label for="answer534471X174X647REDACTED" class="imageselect-label" onclick="cancelBubbleThis(event); checkconditions(this.value, this.name, this.type)" style="pointer-events: none;">
 
         <img class="unforce-height" src="&amp;lt;img alt=&amp;quot;&amp;quot; src=&amp;quot;/upload/surveys/534471/images/logos/REDACTED_logo.svg&amp;quot; /&amp;gt;&amp;lt;br /&amp;gt;REDACTED" style="             height: 200px
            ">
        </label>
It has put in all the text of the subquestion into src, but escaped.

How can I put text under my multiple images please, while presenting them in a grid?
Last edit: 2 weeks 6 days ago by superuser_does. Reason: formatting

Please Log in to join the conversation.

More
2 weeks 6 days ago #274398 by Joffm
Hi,
there are two things to consider.
The image in the preview does not show an "image select".

In the "image select" you only enter the path to the image as subquestion.
Then you get this
 
You see there are no checkboxes.

To  enter something like "<img src=...  with a following text you have to use a muliple question.
 
Regular multiple question with checkboxes

Joffm

Anyway: I answered about versions below 7.
About this Release Candidate? Now idea, if there is something different.

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: superuser_does

Please Log in to join the conversation.

More
1 week 20 hours ago #274448 by superuser_does
Just wanted to say thanks for walking me through this, you resolved my problem. I am now doing it with an <img> tag followed by a <br /> and the label. There are visible checkboxes, but it isn't so bad really.

I reported it as a bug on bugs.limesurvey.org/view.php?id=20535 to change it so users won't be confused in future.

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose