Adding <audio> objects to answer options

More
4 months 1 day ago - 4 months 1 day ago #169935 by kpatch
kpatch created the topic: Adding <audio> objects to answer options
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.</audio>

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: 4 months 1 day ago by kpatch.

Please Log in or Create an account to join the conversation.

More
4 months 1 day ago #169969 by holch
holch replied the 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'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

More
4 months 1 day ago #169970 by holch
holch replied the 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'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

More
4 months 23 hours ago #169975 by kpatch
kpatch replied the 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.
Attachments:

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!