Run Script After Form Submission

  • Profile Image
    Asked on January 30, 2012 at 11:38 AM

    Hey guys,

    Right now I presently have our form re-directing to a thank you page on our website. With the latest version of our form swapping over to a light box, I would like to integrate the thank you message back into the form for a clean look.

    If I place our conversion tracking script (through google) into the thank you message, will jotform allow it execute upon completion of the form? Also, since the form is hosted with jotform, will google be able to track the script?

    Thanks for the help guys, you've been great!

  • Profile Image
    Answered on January 30, 2012 at 12:06 PM


    It is not possible to insert scripts on a form's 'built-in' thank you message, but you can use the tracking pixel codes such as this:

    <div style="display:inline;">
    <img height="1" width="1" style="border-style:none;" alt="" src="//;guid=ON&amp;script=0"/>

    Tracking pixel codes are found together with your conversion script codes. These are provided by Google in case JavaScript is not enabled in a user's browser.

    So far, our users have not had any problems with using this method. Try it and see if it suits your needs.