Welcome to the LimeSurvey Community Forum

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

Insert a picture as an answer

  • Clo007
  • Clo007's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 7 months ago #139795 by Clo007
Insert a picture as an answer was created by Clo007
Hi,

Is it possible to insert different pictures as answer choices ? Or insert pictures in a table ?
The picture are .png or .jpg files and are located on my computer.

Thank you for the answer !
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 7 months ago #139799 by Joffm
Replied by Joffm on topic Insert a picture as an answer
Hi, Clo007,
well, this is explained many many times.
Just upload the pictures into your template in template editor.

In your answer option just enter the usual HTML code to insert a picture:
<img src="{TEMPLATEURL}/files/[name of picture]">

Then you get e.g. this.

Regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 7 months ago #139810 by tpartner
Replied by tpartner on topic Insert a picture as an answer
I don't think you need to do this in the template. The question and answers editors have an images function that allows uploading images to the survey assets directory and inserting the appropriate code snippet.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 7 months ago #139813 by Joffm
Replied by Joffm on topic Insert a picture as an answer
You're right, Tony,
I chose this solution because the HTML editor in answer options of "list (radio)" questions doesn't seem to work.
Well, it doesn't work on my installation and it doesn't work in the LS demo on the web site.

If there is anybody with the same problem, we have to create a bug report.

Best regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 7 months ago #139816 by tpartner
Replied by tpartner on topic Insert a picture as an answer
Ah, got it. I can't test now (on my phone) but will on Monday and report back.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • Clo007
  • Clo007's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 7 months ago #139827 by Clo007
Replied by Clo007 on topic Insert a picture as an answer
Yes, I got the same problem than you, Joffm. That's why I was asking.

So I'll try with Tony's solution !

Thanks.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 7 months ago #139832 by Joffm
Replied by Joffm on topic Insert a picture as an answer
Hi, Clo007,
even if the editor doesn't work, you just can enter the address of the picture manually.
Plain HTML.
<img src="[path_to_picture]/[picture]">

Regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose