Embed our script in the page that hosts our form

  • patrick
    Asked on December 16, 2020 at 7:45 PM

    We're going to load your form in an iframe on our site. In order for our tracking provider to track form submissions properly, we need to be able to embed some code in the page (a short javascript snippet) as well as assign an ID or class to the form.


    Is it possible to embed custom Js snippet in the page that hosts the form?

    Is it possible to assign an ID and/or class to the form element?

  • Ahmed_S
    Replied on December 16, 2020 at 9:30 PM

    For Security reasons it's not possible to embed JavaScript code into a form that runs from our host even if it's embedded of in iframe code of another side as long as the form source refers to our host, if you wish to use such a snippet then you can download the entire source code of your form and added into you site then embed any JS code that you need in it, this way the form will be running from your host and will only send the submissions to our data center.

    You can refer to this guide for detailed steps to get your form's source code.

    https://www.jotform.com/help/104-how-to-get-the-full-source-code-of-your-form

    Please let us know if you need any further assistance.

  • Ahmed_S
    Replied on December 23, 2020 at 4:57 PM

    I apologize for post a wrong link for the source code guide in my previous reply, I've update the link, I hope you were able to manage adding the required tracker, let us know if we can help.