PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

One out of two forms working on page, the other one not. Both work in preview

  1. I have created two forms:
    The first one (which is a short test version of the second one) is working in preview and works fine on the site (DIY theme Thesis), the second one (much longer, multi-page form) works fine in preview, but NOT on the site.
    I added shortcode for both forms to this page:
    http://www.ujustdoit.com/affiliation-info-produit/
    In the sourcecode of the page, you will see that both forms are visible there. But the second one is not visible on the page.
    Urgent help please.
    Kind regards
    Tom

    Posted 11 years ago on Thursday January 17, 2013 | Permalink
  2. I'm not sure exactly where the second form should be, but if it is longer and multi-page, it will rely on Gravity Forms jQuery. Any JavaScript errors on your page will prevent that from working properly (the form will remain hidden with "display:none;".)

    I see this error on your page:

    Timestamp: 1/16/2013 8:37:04 PM
    Error: TypeError: jQuery(...).not(...).mb_miniPlayer is not a function
    Source File: http://www.ujustdoit.com/affiliation-info-produit/
    Line: 97

    I think that error is occurring because you are including jQuery in the page twice:

    Header (correct):
    <script type='text/javascript' src='http://www.ujustdoit.com/wp-includes/js/jquery/jquery.js?ver=1.8.3'></script>

    Footer (unnecessary):
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>

    Additionally, this bit of code in the source will likely cause an error at some point once other errors are fixed:

    <script>
        $(function() {
            $( "#tabs" ).tabs();
        });
    </script>

    That will probably give an error "$ is not a function" or something similar.

    Work at removing the duplicate jQuery version and then post here again and we will take another look at the page. Until all the JavaScript errors are gone, the Gravity Form will not work.

    Posted 11 years ago on Thursday January 17, 2013 | Permalink