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.

display: none

  1. So trying to diagnose why my form with conditional logic is not working. I created a simple test form to test this out and I'm completely stuck. So just like all the other people my whole form is hidden and due to what I assume to be a javascript error with my theme.

    I have:
    - Deactivated my plugins (still broke)
    - Changed to Twenty Eleven (works)
    - I have <?php wp_footer(); ?> in my footer.php file

    I don't know what else to do. No forum post talks about how else to diagnose a conflict with javascript.

    URL: http://aim.aiiresources.com/test-page-2/

    Thoughts!?

    Posted 11 years ago on Tuesday September 18, 2012 | Permalink
  2. David Peralty

    When I inspect your page using Google Chrome I get: Uncaught ReferenceError: jQuery is not defined

    The scripts are all in the footer, and they need to be in the header. Can you contact the theme author about this? Also, you could use the following before your </head> to enqueue the scripts, but you would still need to remove them from the footer:

    http://www.gravityhelp.com/documentation/page/Gravity_form_enqueue_scripts

    Posted 11 years ago on Tuesday September 18, 2012 | Permalink
  3. I don't have any javascript in my footer. I DO see it in the inspector, but not in the actual footer.php file. I am the author of the theme.

    I didn't have <?php wp_head(); ?> in my header.php file. Put that in and now the form is showing, but the conditional logic is not working. It's supposed to show a second drop down if you choose (230 Dual-Boot Lab or 231 Dual-Boot Lab). It's not changing and I'm not seeing any javascript errors.

    Making progress! :-)

    Posted 11 years ago on Tuesday September 18, 2012 | Permalink
  4. DERP!

    Ignore last "but the conditional logic is not working" ... My own logic was at fault. I had who this field if ALL selected instead of any. Totally my bad there.

    <?php wp_head(); ?> in my header.php file fixed it. Not sure where the javascript in my footer is coming from, but it's working. Something more to work on. I guess.

    Thanks David!

    Posted 11 years ago on Tuesday September 18, 2012 | Permalink
  5. David Peralty

    Glad you were able to figure it all out.

    Posted 11 years ago on Tuesday September 18, 2012 | Permalink

This topic has been resolved and has been closed to new replies.