Check out the LimeSurvey source code on GitHub!

How to embed a sound clip in a questions

More
6 years 3 months ago - 6 years 3 months ago #51494 by mapwork
Hi, I'm trying to find out how to embed a sound clip in a question. My survey is hosted on the limesurvey site.

I'm using the editor in html mode ("source" button) and gave in the following html code:

<code class="php">Click to play sound.<br />
<br />
<br />
<embed height="20" width="128" autostart="FALSE" controls="console" loop="true"
volume="50" src=" myspace.limequery.org/upload/surveys/88652/bear.wav "></embed>
<br />
<br />
<br />
</code>


When I switch back to normal mode in the editor (pressing "source" button again" I see:

______________________________
Click to play sound.

(and the green puzzle piece)
________________________________

After this I update my question and use the "preview" button to test run the question.

The following test appears:
____________________________________________________________________

Click to play sound.


bed width="128" height="20" src=" myspace.limequery.org/upload/surveys/88652/bear.wav " volume="50" loop="true" controls="console" autostart="FALSE">



Choose one of the following answers

* Some example answer option
* No answer

_______________________________________________________________

When I switch back to the source edit mode I see:

<code class="php">Click to play sound.<br />
<br />
<br />
<em><x>bed width="128" height="20" src=" myspace.limequery.org/upload/surveys/88652/bear.wav" ; volume="50" loop="true" controls="console" autostart="FALSE"> <br />
<br />
<br />
</x></em></code>

___________________________________________________________________

In the WYSIWG edit mode I see:
___________________________________________________________

Click to play sound.


bed width="128" height="20" src=" myspace.limequery.org/upload/surveys/88652/bear.wav " volume="50" loop="true" controls="console" autostart="FALSE">

_________________________________________________________________

Can anybody explain me what I'm doing wrong or provide me with a similar sample question I can adapt?

Thanks a lot!

________________________________________________________________________
Last Edit: 6 years 3 months ago by mapwork.

Please Log in to join the conversation.

More
6 years 3 months ago #51495 by DenisChenu
For security reason you can't use some html element in your survey. You have to contact LimeService, you have a contact link in the LimeService menu when you are connected.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).

Please Log in to join the conversation.

More
6 years 3 months ago #51500 by mapwork
Thanks a lot!

would mu code work on most other servers?

Please Log in to join the conversation.

More
6 years 3 months ago #51505 by c_schmitz
This is not a problem of LimeService.
Just go to Global settings and deactivate the XSS filter on the tab 'Security' - after that it should accept the HTML (you will have to enter it again).

Best regards

Carsten Schmitz
LimeSurvey project leader

Please Log in to join the conversation.

More
6 years 3 months ago #51507 by mapwork
Hi Carsten,

The question now works as expected!

Herzlichen Dank!

Jan

Please Log in to join the conversation.

More
6 years 3 months ago #51558 by Mazi
You're welcome!

If our hints have been helpful and you enjoy limesurvey please consider a donation to the team .
We do all this in our free time and you don't have to pay a penny for this software.

Without your help we can't keep this project alive.


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form