- Posts: 27
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Adding <audio> objects to answer options
- kpatch
- Topic Author
- Offline
- Junior Member
Less
More
5 years 10 months ago - 5 years 10 months ago #169935
by kpatch
Adding <audio> objects to answer options was created 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
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
- Away
- LimeSurvey Community Team
Less
More
- Posts: 11658
- Thank you received: 2742
5 years 10 months ago #169969
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
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
- Away
- LimeSurvey Community Team
Less
More
- Posts: 11658
- Thank you received: 2742
5 years 10 months ago #169970
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
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).
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
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 27
- Thank you received: 0
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.
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:
The topic has been locked.