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!