Putting an audio file into a Yes/No-Question?

  • Sven1987
    Asked on March 6, 2018 at 1:52 PM

    Hi, 

    I would like to add audio files to my yes/no questions, since it is meant for people who might have problems with reading, so that the question would be read out loud for them. For this purpose obviously the question form and the audio file would have to appear at the same time. So my questions are: Would it in the best case be possible to upload single audio files to the single questions as done here: 

    https://www.jotform.us/form/40591895535162

    Or would it at least be possible to let appear the YES/NO-question-form and a soundcloud-form at the same time? In the best case whilst the soundcloud- form is hidden? 

    Best

    Sven

  • Nik_C
    Replied on March 6, 2018 at 3:08 PM

    Unfortunately, it is not possible, to add audio tags (or any tags to radio/checkbox field). 

    You could try adding Text field to your form and then add an audio tag:

    1520366807screencast Screenshot 10

    Here is the audio tag that you should add:

    <audio src="LINK" controls="controls"></audio>

    Just replace the LINK with a link to your audio file.

    Then you could conditionally show that field.

    Please let us know if that could work for you.

    Thank you!

  • Sven1987
    Replied on March 13, 2018 at 2:24 PM

    Hi and thanks for the answer! 

    Since I'm using the single page for each question form I would like to let the audio file run while the question appears. Is it possible to let a Text field appear (or let appear hidden) at the same time with the yes/no-question? Or could I even somehow put this audio link in the "description field" of my yes/no-question? 

    Best

    Sven

  • Richie JotForm Support
    Replied on March 13, 2018 at 4:09 PM

    You need to put your text field before your yes/no question so that your audio will load first then set it to hidden.

    Putting an audio file into a Yes/No Question? Image 1 Screenshot 30

    Here is my sample form.

    I have embedded a sound cloud iframe in a text field to play my audio.

    Putting an audio file into a Yes/No Question? Image 2 Screenshot 41

    Here is the link to my form.https://form.jotform.com/80716491390964

    Let us know how it goes.