My form is not working when embedded via Script

  • NGHS
    Asked on December 11, 2017 at 12:30 PM

    This form does not appear to be working for me when it is embedded via Script.

    https://form.jotform.com/NGHS/general-contact-web-form


    Can you help?

    Thanks!

  • Sabbir
    Replied on December 11, 2017 at 12:47 PM

    Can you please be more specific about your form?

    What kind of problem you are facing?

    Please follow this link to know about our available embed code:

    https://www.jotform.com/help/67-Which-Form-Embed-Code-Should-I-Use


  • NGHS
    Replied on December 11, 2017 at 12:50 PM

    When I embed the form using the Script Embed option, the form does not display on the page. When I use the IFrame method, it does work.

  • Sabbir
    Replied on December 11, 2017 at 12:54 PM

    This could possibly happened due to conflicting of javascript/jquery libraries that may used in your website.

    You can try using Jquery Noconflict as described in this link: https://api.jquery.com/jquery.noconflict/

    Otherwise, you can use iFrame since your form is working with iFrame embedded code.

  • NGHS
    Replied on December 11, 2017 at 1:02 PM

    This is a brand new problem. I've used the Script Embed within my CMS to dynamically create forms on each Doctor page: ex: https://www.ngpg.org/faustine-dinh-do/

    This is used on many pages. I have to use the script embed option to work with my Google Analytics event tracking.


    Can you help me remedy the issue?


  • NGHS
    Replied on December 11, 2017 at 1:28 PM

    I've identified the script that caused the issue:

    <script src="//cdn.callrail.com/companies/960179255/a374dcbb993ab5182cf7/12/swap.js"></script> 


    CallRail allows us to track calls as conversion points from our landing pages.

    Do you know if your team made updates that conflicts with this script?


    Thanks,

    Ryan

  • aubreybourke
    Replied on December 11, 2017 at 2:22 PM

    The best solution is to use the iframe embed method. It will make your form very reliable.

    Getting-the-Form-iFrame-Code

    I realize you need Google Analytics to work. So as a workaround you could use the GA widget.

    https://widgets.jotform.com/widget/google_analytics

    Hope that helps!