I removed the audio clips out of the random generator in manage questionnaire. When I preview my questionnaire, it does randomly play one of the three audio clips. That's good and exactly what I needed it to do. However, below the audio, I receive the following message:
There is an error in the PHP code:
Questionnaire Error: Command or string (text) unfinished
A command, e.g. question() is missing a semicolon or
a string (text in quotation marks) is unclosed or
the string itself contains an apostrophe, e.g. html('Let's do it!'); – if the latter is the case, please type in a backslash (\) first.
Perhaps the opening and closing braces for the statement blocks are mismatched.
PHP code
001 namespace s2survey\questionnaire\environment;
002
003 <audio id="audio_with_controls" preload="auto" autoplay controls controlsList="nodownload">
004 <source src="%random%" type="audio/mpeg" />
005 </audio>
006 return 'ok';
I am sorry, I am not very good with the coding, but I really hope to be able to resolve this issue as it is critical to my thesis. Thank you so, so much for your help in the matter.