Welcome to the LimeSurvey Community Forum

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

Put a picture or pdf in a multiple choice question?

  • Serafim
  • Serafim's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
10 years 5 months ago #100519 by Serafim
Hello everyone,

I want to do a sort of multiple choice question with a picture or .pdf. The tokens will see the picture or pdf and choose one. How can I do that?

Thanks
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 5 months ago #100524 by tpartner
You can insert the images in the sub-questions.

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: Serafim
The topic has been locked.
  • Serafim
  • Serafim's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
10 years 5 months ago #100528 by Serafim
Ah, that's a good idea, thanks. And is it possible to insert a pdf file?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 5 months ago #100530 by tpartner
Not directly. You can put in links to PDF files but they would have to be opened by the browser in a new window (target="_blank") or a PDF reader.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • Serafim
  • Serafim's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
10 years 5 months ago #100545 by Serafim
I've founs something that works just fine, iframes:

<iframe height="633" src="/limesurvey/upload/surveys/(survey number)/images/you pdf file.pdf" width="701"></iframe>

I upload the pdf file to the survey as a picture and then just insert this code.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 5 months ago #100554 by tpartner
Yeah, but be aware that not all browsers have a plug-in/add-on to display PDF files. In those cases the respondents will be asked if they want to save or open the file. If they say "open", it will be opened in their PDF reader, not in the iframe.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose