Formular Einbindung per Script: Dynamische Vorausfüllung von Auswahlfeldern auf verschiedenen Unterseiten

  • S
    Sebastian
    Gefragt am 13. November 2025 um 10:40

    Vielen Dank für das gute Video. Das ist eine sehr hilfreiche Funktion. Wie funktioniert es dynamisch wenn ich das Formular per script eingebunden habe? Also von verschiedenen Unterseiten möchte ich auf eine Formularseite mit der jeweiligen vorausgefüllten Auswahl.

  • Profile Image
    Mark Alan Jotform Support
    Geantwortet am 13. November 2025 um 13:22

    Hi Sebastian,

    Thanks for reaching out to Jotform Support. Unfortunately, our German 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 German, 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, getting back to your questions. When you embed your Jotform using the script embed method, it can still handle dynamic prefilled values — you just need to pass the data through the form URL parameters. Here’s how it works:

    • Each Jotform field has a Unique Name, you can find this under Field Details in the Form Builder.
    • You can prefill that field by appending ?fieldName=value to the form URL.
    For example: https://form.jotform.com/1234567890?name[first]=John&name[last]=Doe&email=john@example.com
    
    • If you’ve embedded the form with a script, you can dynamically generate those URL parameters in your page’s JavaScript before loading the form.
    Example: <script> const userEmail = "john@example.com";const embedUrl = `https://form.jotform.com/1234567890?email=${encodeURIComponent(userEmail)}`document.write('<script type="text/javascript" src="' + embedUrl + '"><\/script>');</script>
    
    • This allows you to create different subpages, or user-specific links that open the same embedded form, but with different prefilled data based on the context or user information on that page.

    Even when embedded with the script method, the form dynamically reads any URL parameters you pass to it, so your subpages can each display the same form pre-filled differently.

    Let us know if you have any other questions.

  • Profile Image
    sebastianrichter
    Geantwortet am 14. November 2025 um 08:33

    Dear Mark,

    thank you very much for your fast answer and the explanation. Now i have the solution for this and it works well.

    Thanks a lot and have a nice weekend

    Best regards
    Sebastian

Your Reply