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.

Conditional Logic causes form to disappear

  1. morningstar
    Member

    When I add conditional logic to the form it causes it to disappear. None of the solutions in this post http://www.gravityhelp.com/forums/topic/entire-form-disappears-when-conditional-logic-fields-are-added resolve the problem. I have the latest gravity forms and wordpress. I disabled all plugins and switched the theme to twentyten. I changed gravity file permissions to 0755. I have wp_footer included in footer.php. I do not know what to try next. I did notice a javascript error in conditional_logic.js file at line 188 "uncaught typeerror cannot read property '28' of undefined". I do not know what that error means. My form is here: http://www.localfarmercsa.com/order-garden-share-csa/

    Posted 12 years ago on Wednesday October 17, 2012 | Permalink
  2. Jar Jar
    Member

    I have the same problem.

    Posted 12 years ago on Wednesday October 17, 2012 | Permalink
  3. Jar Jar
    Member

    I could get it working again by turning off the WP UI - Tabs, Accordions, Sliders plugin. (http://wordpress.org/extend/plugins/wp-ui/)

    Posted 12 years ago on Wednesday October 17, 2012 | Permalink
  4. I have tried everything, footer, header, reverted back to older version of Gravity Forms and still doesn't work.
    Theme is ok, still doesn't work with TwentyTen or TwentyEleven.
    Preview works in Gravity forms create /edit area but when adding shortcode it does not work.
    I have 3 other clients that have exact same problem with our developer version, so if there is some code that can get posted to help fix this globally, for everyone, that would be great.
    Here is the URL, only the non-conditional form shows up.
    http://www.stonavigator.com/kl-2/registration/

    Posted 12 years ago on Thursday October 18, 2012 | Permalink
  5. We have three people all piggybacking onto one topic, which makes it extremely difficult to troubleshoot each one individually.

    In general, when a form with conditional logic fails to display, it's because of a jQuery or JavaScript error. The error on the page will prevent Gravity Forms jQuery from working and revealing the parts of the form which should be visible. jQuery and JavaScript errors can come from plugin and theme conflicts, which is why we alway suggest testing for those by following these instructions http://rkt.gs/testing

    Other reasons for a form with conditional logic to now show are related to jQuery not being included in the page, or the wrong version of jQuery being called, or multiple versions of jQuery being called. These errors are also caused by themes and plugins. Again, that is why we recommend testing by following these instructions http://rkt.gs/testing

    Posted 12 years ago on Thursday October 18, 2012 | Permalink
  6. @Zeus, you have a jQuery error on your page:

    Timestamp: 10/17/12 9:10:12 PM
    Error: TypeError: jQuery(".colorbox").colorbox is not a function
    Source File: http://www.stonavigator.com/kl-2/registration/
    Line: 305

    Resolve that, and we will take another look.

    Posted 12 years ago on Thursday October 18, 2012 | Permalink
  7. @Jarek, sounds like you have resolved the issue with your plugin conflict. If you would like us to take a look at the page where your form does not work, please post the URL.

    Posted 12 years ago on Thursday October 18, 2012 | Permalink
  8. @morningstar you have a JavaScript error on your page, as you know:

    Timestamp: 10/17/12 9:16:59 PM
    Error: TypeError: conditional_logic.defaults is undefined
    Source File: http://www.localfarmercsa.com/wp-content/plugins/gravityforms/js/conditional_logic.js?ver=1.6.8.1
    Line: 188

    In your situation, it looks like you've been affected by an issue with WordPress core. See these discussions:
    http://www.gravityhelp.com/forums/topic/xhtml-validation-gf_apply_rules#post-43168
    http://www.gravityhelp.com/forums/topic/google-conversion-tracking-not-executed#post-81102

    If you try your form from the form preview, does conditional logic work as expected?

    Posted 12 years ago on Thursday October 18, 2012 | Permalink
  9. Opening up the page, we see this under HTML tab:

    Please download our brochure to register by email or phone. An online registration form will be available soon...

    [gravityform id="9" name="Request a Brochure for our Kuala Lumpur Workshop-Conference..."]

    Posted 12 years ago on Thursday October 18, 2012 | Permalink
  10. I'm not sure how that is relevant. The error I posted is related to colorbox. Here is the offending code from your web page:

    <!-- Newsletter plugin footer file -->
    <script type="text/javascript">
    	jQuery(document).ready(function() {
    	jQuery('.colorbox').colorbox();
    	jQuery('.productsubmit input, .wpcobutton').button();
    });
    </script>
    Posted 12 years ago on Thursday October 18, 2012 | Permalink
  11. We created a new page http://www.stonavigator.com/test still the same problem.
    Only code we put in is:
    [gravityform id=11 title=false description=false ajax=true]

    Same issue and thanks for the fast response.

    Posted 12 years ago on Thursday October 18, 2012 | Permalink
  12. Ok, the colorbox issue has been fixed, now I don't see any more errors.
    I can give admin access if you need it.

    Posted 12 years ago on Thursday October 18, 2012 | Permalink
  13. @Zeus Thank you for working on that. I see the new test page set up and I do not see a Gravity Form embedded in the page at all. The content div is not showing the output of the shortcode at all. If this problem were due to a JavaScript error, there would be output in the source of the page, but the form would be hidden with CSS because the jQuery to reveal it could not run. There is no output at all from the gravityforms shortcode.

    In the iNove theme, can you embed a simple form without conditional logic and have it work correctly?

    Posted 12 years ago on Thursday October 18, 2012 | Permalink
  14. FIXED! - Thanks That Firefox Firebug debugger sure is handy.
    I installed a plugin called "JQuery Colorbox "
    Changed:
    [gravityform id=4 title=false description=false ajax=true]
    TO
    [gravityform id=4 title=false description=false ajax=false]
    (Ajax doesn't seem to work)

    For other readers, this MAY be caused by Tribulant newsletter plugin as a conflict, but their latest version is VERY gravity forms friendly.

    Posted 12 years ago on Thursday October 18, 2012 | Permalink
  15. Thank you for that update. Glad it's working for you now. I will leave this topic open for anyone who previously posted here and needs additional assistance.

    Posted 12 years ago on Thursday October 18, 2012 | Permalink
  16. I've resolved morningstar via priority support.

    Posted 12 years ago on Thursday October 18, 2012 | Permalink

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