Willkommen im Online-Support von SoSci Survey.

Hier bekommen Sie schnelle und fundierte Antworten von anderen Projektleitern und direkt von SoSci Survey.

→ Eine Frage stellen


Welcome to the SoSci Survey online support.

Simply ask a question to quickly get answers from other professionals, and directly from SoSci Survey.

→ Ask a Question

0 votes

The user guide contains examples on how to display a randomly selected image in a questionnaire: https://www.soscisurvey.de/help/doku.php/en:create:questions:random

I need to do something similar but, instead of displaying an image, I want to play an audio file. I use the following PHP code to select the file:

$code = value('S111');
$audiofile = value('S111', 'label');

But I haven't found a way to play audio from PHP, and if I want to play the file from an HTML block, $audiofile is not available. Is there a workaround I can use?

Thanks in advance!

in SoSci Survey (English) by s083220 (130 points)

1 Answer

0 votes

I found the answer: The examples for images in the page I linked above show how to embed html code into the PHP block.

by s083220 (130 points)
...