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.

Form With Conditional Logic Won't Display

  1. I'm trying to make a form, everything works until I turn on conditional on. The form just won't display, in preview or on my live site

    http://pajamaforest.com/gravityforms-export-2010-12-07.xml

    Searching the forums, I found one admin suggest adding the following block of code to my theme's functions.php, tried that and it didn't work (I added it to the very end, just before the ?>).

    wp_enqueue_script("gforms_ui_datepicker", WP_PLUGIN_URL . "/gravityforms/js/jquery-ui/ui.datepicker.js", array("jquery"), "1.3.9", true);
    
    wp_enqueue_script("gforms_datepicker", WP_PLUGIN_URL . "/gravityforms/js/datepicker.js", array("gforms_ui_datepicker"), "1.3.9", true);
    
    wp_enqueue_script("gforms_conditional_logic_lib", WP_PLUGIN_URL . "/gravityforms/js/conditional_logic.js", array("gforms_ui_datepicker"), "1.3.9", true);
    
    wp_enqueue_style("gforms_css", WP_PLUGIN_URL . "/gravityforms/css/forms.css");

    The funny thing is I just made another site with tons of conditional logic and everything worked just fine without editing any theme files. For some reason it's giving me problems with even the simplest of conditional logic :\

    Posted 14 years ago on Tuesday December 7, 2010 | Permalink
  2. Please post a link to a page containing the form so we can inspect it and see if we can see anything that looks out of sorts. The XML export file itself is of no use because we won't run into the issue on our end, it's going to be a theme related issue or possibly a plugin conflict specific to your site.

    Posted 14 years ago on Tuesday December 7, 2010 | Permalink
  3. here you go:
    http://pajamaforest.com/2010/12/07/test-post/

    Posted 14 years ago on Tuesday December 7, 2010 | Permalink
  4. The issue is your site has Javascript errors unrelated to Gravity Forms. As soon as a Javascript error occurs, it quits executing. So the Gravity Forms conditional logic is never executed because of other errors on the page.

    See this screenshot:

    http://grab.by/7M5Z

    Posted 14 years ago on Tuesday December 7, 2010 | Permalink