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 doesn't display on page

  1. ChrisC
    Member

    Hi guys, I am using Gravity Forms with the C3 theme (here's the theme I use: http://themefuse.com/wp-themes-shop/clean-classy-corporate/) and the form is not available whenever I setup a Conditional Logic for any question in the form. The form is pretty large itself and I really need that feature really helps.

    I can however see the form when I don't have any questions with Conditional Logic fields enabled so I think there's a problem with the theme's code clashing with the Gravity Form's code. Any insight on that?

    Here's the page with a form with just one Conditional Logic field active: http://careersinwhite.org/form-2/

    And here's the exact same form, without any the Conditional Logic field working:
    http://careersinwhite.org/visitors/registration-form/

    Looking forward for your answer!

    Posted 9 years ago on Tuesday February 1, 2011 | Permalink
  2. Hey guys,

    I'm having exactly the same issue - the form won't display when conditional logic is enabled on any form field but displays fine when conditional logic is disabled.

    I'm sorry the site URL isn't available (it's not setup with live DNS - you can see the site if you change your hosts file so let me know if you need to); the output code (when conditional logic is enabled) on the "Your Message" box looks like this: http://pastebin.com/AhRUrwej

    I've coded the theme myself and also tested with Twenty Ten (just in case I had made a mistake somewhere) so don't believe it's a theme issue.

    I'm running WP 3.0.5 / GF 1.4.5 / PHP 5.2.13 / MySQL 5.0.77 and have these plugins installed and activated: Limit Login Attempts / WordPress SEO and WP DB Manager (I've also tested with them all disabled to no avail).

    Many thanks for you time looking into this.

    James

    Posted 9 years ago on Saturday February 12, 2011 | Permalink
  3. Typically when forms with conditional logic don't appear on a page it is one of four things...

    1) Incorrect file permissions. If file permissions are set to restrictive on the plugin files it can prevent the Javascript from being called because the server will return a 500 error for the call to the Javascript.

    2) Missing files. We have seen people not fully upload the plugin, which results in necessary Javascript files being missing. Make sure the plugin was uploaded correctly.

    3) You are missing the necessary wp_head() and wp_footer() function calls in your header.php and footer.php files. You can read about these here:

    http://codex.wordpress.org/Function_Reference/wp_head

    http://codex.wordpress.org/Function_Reference/wp_footer

    4) You have a Javascript error on the page that is causing all Javascript to quit executing. If your page has a Javascript error this prevents the conditional logic Javascript from executing so the form remains hidden. Conditional logic forms use Javascript to display only the portion of the form that should be displayed based on user interaction.

    Issues #3 and #4 above are the most common when this issue happens.

    @James Without being able to browse the page having the problem it's difficult for us to tell you what the issue is. If we could view the page we could tell pretty quickly.

    @ChrisC Your page has a Javascript error on it related to tfuse_form(), not sure what this is but that is the first thing I noticed when I viewed your page. That could be the cause. You will have to resolve that Javascript error before determining if that was the reason... either way that would have to be resolved.

    Posted 9 years ago on Saturday February 12, 2011 | Permalink
  4. Hey Carl,

    Wow that was a quick reply!

    It turns out that I'd set the jQuery path as //ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js?ver=1.5 which works fine over HTTP but over HTTPS it was being rewritten to https://www.sitename.com//ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js?ver=1.5 so jQuery wasn't being loaded.

    Sorry to waste your time, I appreciate you looking into this though!

    On a side note, is there a quick and easy filter to move the conditional_logic.js file to wp_footer? I've set up all the theme scripts to run there by adding TRUE as the last paramater eg:

    wp_register_script('plugins', JM_URI . '/js/plugins.js', array('jquery'), JM_THEME_VERSION, true);

    Many thanks,
    James

    Posted 9 years ago on Saturday February 12, 2011 | Permalink
  5. Currently there isn't an easy way to do this. Originally we were enqueuing more scripts in the footer, but we had to start using the header more because we ran into a lot of support issues with people not having the wp_footer function call in place. Sometimes we have to make decisions based on situations like this. Kinda sucks but we try to balance it out.

    Posted 9 years ago on Saturday February 12, 2011 | Permalink
  6. Hello Carl. My form is not displaying also. The url is http://www.thewdstore.com/replacement-window-cost

    Thank you for any help!

    Michael

    Posted 9 years ago on Monday March 7, 2011 | Permalink
  7. Hello again! I figured my problem out. It was a conflict with another plugin. Thanks!

    Posted 9 years ago on Monday March 7, 2011 | Permalink

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