Upload Audio on form: Source code is not working

  • salvocino91
    Domanda del 7 maggio 2024 alle ore 10:44

    Buongiorno, ho provato ad inserire un codice sorgente in un modulo ma quest'ultimo purtroppo non funziona.

    A seguire allego il codice per potervi far fare un test di funzionamento.


    <audio controls autoplay="media">

      <source src="http://securitydirect-webradio.ddns.net:8000/" type="audio/mpeg">

    </audio>

  • Jason Jotform Support
    Risposta del 7 maggio 2024 alle ore 10:58

    Hi salvocino91,

    Thanks for reaching out to Jotform Support. Unfortunately, our Italian Support agents are busy helping other Jotform users at the moment. I'll try to help you in English using Google Translate, but you can reply in whichever language you feel comfortable using. Or, if you'd rather have support in Italian, let us know and we can have them do that. But, keep in mind that you'd have to wait until they're available again.

    Now, coming back to your question, are you trying to use a source code to embed your form on a website? If so, I advise using your form to get the full source code.  Let me walk you through it:

    1. In the Form Builder, click on Publish in the orange navigation bar at the top of the page.
    2. Select Embed in the left corner.
    3. Choose the Source Code at the bottom.Upload Audio on form: Source code is not working Image 1 Screenshot 30
    4. Lastly, click Copy Code and add it to your website.Upload Audio on form: Source code is not working Image 2 Screenshot 41

    If that’s not exactly what you’re looking for, can you explain a bit more, so I can help you better? You can also share the link to your form.

    In the meantime, let us know if you have any other questions.

  • salvocino91
    Risposta del 15 maggio 2024 alle ore 06:57

    Buongiorno, no la mia problematica non è importare un modulo su un sito web ma bensì incorporare in un modulo il mio player per far si che funzioni nell'app generata con jotform.

    Vorrei far funzionare il seguente codice sorgente in un modulo:

    <audio controls autoplay="media">

     <source src="http://securitydirect-webradio.ddns.net:8000/" type="audio/mpeg">

    </audio>

  • Neil Jotform Support
    Risposta del 15 maggio 2024 alle ore 09:27

    Hi salvocino91,

    Thanks for getting back to us. You can try to upload your audio on Jotform first, and then copy its link to the source code. Let me walk you through it:

    1. Create a normal form and add a File Upload element.
    2. Make sure that the file type of the audio is included on the settings of the element.

    Upload Audio on form: Source code is not working Image 1 Screenshot 502. Preview the form, upload your audio, and then submit the form.

    Upload Audio on form: Source code is not working Image 2 Screenshot 61

    3. Then, when you received the email notification of the submission, right-click on the audio file and copy the link address.

    Upload Audio on form: Source code is not working Image 3 Screenshot 72

    That's it. You can now use that link to the source code. Here's the sample code:

    <audio controls>
    <source src="https://www.jotform.com/uploads/Neil_I/241353494292055/5915883857042996510/Voice%20011.m4a" type="audio/ogg">
    Your browser does not support the audio element.
    </audio>

    Check out my result below:

     Upload Audio on form: Source code is not working Image 4 Screenshot 83 Here's my demo form. Feel free to clone it to further test it.

    Give it a try and let us know if you need more help.