How to edit form to add scripts

  • Svata
    Asked on September 4, 2024 at 9:34 AM

    Hi there.

    We have a dropdown menu in the Jotform where a selection can be made. We want to track the form submission but only when one concrete selection is made in the dropdown menu. Since the form is embedded and behind the iframe wall, we cannot access it using scripts in Google Tag Manager. I would need to modify the form code to make it send me the change in the dropdown menu. Is such a modification possible? How would I go about it? Can you please advise?

    Thanks

  • Richie JotForm Support
    Replied on September 4, 2024 at 10:07 AM

    Hi Svata,

    Thanks for reaching out to Jotform Support. I checked your account but it seems to be under a guest. If you're using the classic form layout, then you can get the form source code to edit the scripts and upload it to your website. Let me show you how to get the form source code on the classic form layout:

    1. In Form Builder, in the orange navigation bar at the top of the screen, click on Publish.
    2. Click on Embed on the left side of the screen.
    3. Then click on Source Code.

    How to edit form to add scripts Image 1 Screenshot 20

    You can also check out this guide on how to get the form source code.

    Give it a try and let us know if this works for you.



Your Answer