Welcome to the LimeSurvey Community Forum

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

Adding <audio> objects to answer options

  • kpatch
  • kpatch's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 10 months ago - 5 years 10 months ago #169935 by kpatch
Hello:

I am currently adding audio objects to my question text using code like this:

<audio controls="" preload=""><source src=" mydomain.com/pretest/auralp2/la_peur/lap...onses_orale_q4r3.mp3 " type="audio/mp3" /> Your browser does not support the audio element.

This is how it appears:



My preference would be to have them embedded in the answer options, like this:




I have used the HTML editor for the answer options to attempt this. None of the toolbar tools seem suitable. Also, in "Source" mode I have tried to use <iframe> but, alas, no joy in LimeVille.


Any suggestions would be most helpful.

Thanks

Patrick
Last edit: 5 years 10 months ago by kpatch.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 10 months ago #169969 by holch
Replied by holch on topic Adding <audio> objects to answer options
Where and how did you insert them? Can you give a small LSS file, only showing this question? (not LSQ or LSG, a survey file, with only the respective question).

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 10 months ago #169970 by holch
Replied by holch on topic Adding <audio> objects to answer options
And always state the exact LS version you are using (and ideally also the template/theme).

What happens if you insert the code directly in the answer option text field, without any editor or anything? You usually can just insert HTML (as long as the XSS filter is off).

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • kpatch
  • kpatch's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 10 months ago #169975 by kpatch
Replied by kpatch on topic Adding <audio> objects to answer options
First off, I am using LS Version 3.7.2+180508. I am also using a custom theme ("esprimme") that is an extension of "fruity".

Your recommendation about the HTML/XSS filter did the trick. Worked the first time!

For completeness I have attached the *.lss file of my test survey.

Thank you so much.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose