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.

Advanced Fields: List: Conidtional Logic Crashes Entire Form

  1. I created a Dropdown called Category with about 10 selections, some named group and some named individual.

    Then I created a 2 column "Advanced Fields: List"

    On that field I use conditional logic to see if the user selected certain options (aka they selected Child Group - K-2nd grade), if so I want it to show the field.

    However, upon creating the form nothing shows up. I think there may be a serious issue here.

    Anything I can do?

    Posted 12 years ago on Thursday November 15, 2012 | Permalink
  2. Just checked my plugins....

    The culprit, strangely enought is: Google Analyticator

    What... the?

    Posted 12 years ago on Thursday November 15, 2012 | Permalink
  3. If you would like us to take a look at the error, please post the URL. I would check with Firebug or the Web Developer Toolbar for JavaScript errors. When there are errors, the Gravity Forms jQuery can't run to reveal the parts of the form which should be visible.

    Posted 12 years ago on Saturday November 17, 2012 | Permalink
  4. Hi there, Im having a similar problem. Form was working fine and thought I would add some Conditional Logic options which worked fine int he preview of the form but once made live on the site the form disappears completely.

    What is the best way to find the reason for error?

    Posted 12 years ago on Tuesday December 4, 2012 | Permalink
  5. Okay after removing the following it works:

    <!-- Nivo Slider -->
    <script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/jquery-1.7.1.min.js"></script>
    <script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/jquery.nivo.slider.js"></script>

    Posted 12 years ago on Tuesday December 4, 2012 | Permalink
  6. If you're adding jQuery like that, you likely have two versions of jQuery on the page, and that won't work. Gravity Forms requires version 1.7.2 to be enqueued just one time, in the header, to work properly.

    You should enqueue your scripts rather than add them to the head directly. Please see here:
    http://codex.wordpress.org/Function_Reference/wp_enqueue_script

    Posted 12 years ago on Tuesday December 4, 2012 | Permalink
  7. shekel
    Member

    Hi,

    Form is gone once I enable conditional logic. URL: http://www.usgreencard.sg/?page_id=7 theme name is gravity

    Posted 12 years ago on Wednesday December 5, 2012 | Permalink
  8. @shekel

    You have two versions on jQuery on your page. One in the head (which is correct and is the latest - 1.7.2) and then one at the bottom of the page (which is at the theme level and is 1.3.2).

    See this screenshot.

    Posted 12 years ago on Wednesday December 5, 2012 | Permalink
  9. 1pp1k10k4m1
    Member

    I have this same issue I think. Once I enable conditional logic, the form disappears. Please help!

    http://bigriveradvertising.com/superteacher/

    Posted 12 years ago on Wednesday December 5, 2012 | Permalink
  10. @ 1pp1k10k4m1 you should go through a theme/plugin conflict test:

    http://www.gravityhelp.com/documentation/page/Testing_for_a_Theme/Plugin_Conflict

    Posted 12 years ago on Wednesday December 5, 2012 | Permalink
  11. 1pp1k10k4m1
    Member

    It works just dandy with Twenty Ten and Twenty Eleven.

    I've confirmed the wp_head() and wp_footer() are properly placed. EXACTLY where the WP docs say they should be.

    I'm using jquery 1.8.3. I don't see any conflicts or multiple instances. Any ideas?

    Posted 12 years ago on Wednesday December 5, 2012 | Permalink
  12. When I view the source of that page link you provided, I don't see ANY gravity forms code in it. It seems like something in your theme might be stripping it out of the page altogether?

    Posted 12 years ago on Wednesday December 5, 2012 | Permalink
  13. 1pp1k10k4m1
    Member

    I noticed that too. I have tried the raw tags around it, but that didn't seem to do anything. I have also asked the theme's author about this.

    What's truly odd is using firebug, I can remove the "none" in the display:none and the form magically shows up.

    Can I send over some screenshots? They may help explain.

    Posted 12 years ago on Wednesday December 5, 2012 | Permalink
  14. Yeah the display:none is always present, it only truly takes effect if there is a JS error. On what page or where or how are you even seeing the display: none - in that link you gave I don't see any form in the source.

    Posted 12 years ago on Thursday December 6, 2012 | Permalink
  15. 1pp1k10k4m1
    Member

    http://i45.tinypic.com/dgt4rc.png
    http://i48.tinypic.com/9fxj89.png

    I can email these pics if they won't post here. They have the exact location of the code and highlighted div. Tried pastie and pastebin w/backticks...doesn't seem to embed, so here's the link.

    Under Submit a SuperTeacher there's a small div, it seems it contains the whole form, just not showing (copied from firebug) line 2 shows the display:none:

    http://pastebin.com/cCALfVEA

    Posted 12 years ago on Thursday December 6, 2012 | Permalink
  16. 1pp1k10k4m1
    Member

    i've taken the conditional logic off for now, bc I need to finish the form and my boss wants to be able to see it. Would still love to get this worked out though. I can provide login if needed. Thanks again!

    Posted 12 years ago on Thursday December 6, 2012 | Permalink
  17. 1pp1k10k4m1
    Member

    Any updates? Conditional logic was off for a couple hours yesterday intermittently. Sorry about that.

    Posted 12 years ago on Friday December 7, 2012 | Permalink
  18. 1pp1k10k4m1
    Member

    Please help!

    Posted 12 years ago on Monday December 10, 2012 | Permalink
  19. David Peralty

    Again, we can't help you troubleshoot when you link us to pages that don't have Gravity Forms forms on it. Especially if you keep changing things, thus changing the variables at play. There is a limited number of issues that cause Gravity Forms not to work when Conditional logic is being used. If you could work with us, step by step, we can help you isolate the problem. All my best!

    Posted 12 years ago on Monday December 10, 2012 | Permalink
  20. 1pp1k10k4m1
    Member

    Hi David,

    Thank you for your reply. I don't mean to sound ungrateful, I apologize. It was off thursday for a little bit, but friday had no responses in the forum, and it's after 4 EST today. I'm not complaining, I just didn't know what was going on, or if anyone had had a chance to take a peek. That said, I understand you guys have tons of requests for help and are doing the best you can, and I'm very grateful for that. I don't expect priority support, I didn't pay for priority. I just didn't want to be forgotten about, and I appreciate any help you can offer. Sorry if it came across as over-bumping. :)

    The situation is basically this (or at least to the limit of my understanding, which is very limited):

    What I'm trying to do is create a form that allows a user entering the page to nominate a teacher as being a superteacher. The user does not need to be logged in. However, I also need to hide certain fields from any user that is not logged in. These submissions will be posted to a custom post type "Entries". Entries will be judged by users that are logged in, who will rate 4 user responses (from the initial form) from 0-25, and the scores will be added to give a total. The tops scores in each region will be passed to a 'blue ribbon panel" who will re-judge the posts, and the highest score wins.

    I'm working with a one page AJAX theme. When I enable conditional logic in gravity forms, the form disappears.

    The display:none that your docs say gravity forms uses is present on the page. When I remove display:none (in firebug), the form shows immediately. So, I think it is ok to conclude the form is loading...in some form, otherwise it seems that removing display:none would not change anything (I'm thinking there would be nothing to "show" if nothing were being loaded, maybe this isn't a sound conclusion, I'm a javascript beginner, and at the moment gravity forms is just too big for me to meaningfully understand).

    If I remove conditional logic, everything appears just fine. I am able to fill out and submit the form, no problem.

    If I can provide screenshots, backend access, whatever else, I will be happy to do so. I've tried to work with the theme developer on the issue, and he has been very nice, as has everyone here. But his solution was to add custom css "#about .gf_browser_chrome { display: block!important;}". The form displays then, but it's pointless because he's basically just overriding the display:none, which defeats the purpose of the conditional logic.

    2nd issue may need another thread (or maybe outside the scope of support), but once the submitted form is posted to the custom post type, I cannot view it, I get a 404 error. I realize that's a different issue, and I can work thru that later. I can't really get started until I can work this 1st issue out.

    Thank you!!!

    David

    Posted 12 years ago on Monday December 10, 2012 | Permalink
  21. David Peralty

    Can you send me a copy of this, and WordPress login details to peralty@rocketgenius.com and I'll take a look at this for you tomorrow first thing?

    Posted 12 years ago on Monday December 10, 2012 | Permalink
  22. We have the same thing happening on our form:

    http://proair2.wpengine.com/contact-us/

    Can you assist?

    Posted 12 years ago on Friday December 14, 2012 | Permalink
  23. Just wondering if someone could take a look at this form (with conditional logic) on my website: https://ala.asn.au/prace/ It won't preview or output on the page. I do have another form on this page with some conditional logic which is OK: https://ala.asn.au/test/

    So I'm confused as to why this one won't show https://ala.asn.au/prace/
    I would really appreciate some advice. I am not particularly technical.

    Posted 12 years ago on Sunday December 16, 2012 | Permalink
  24. Re my previous post - the JS error that I can see using firebug is ReferenceError: gf_apply_rules is not defined @

    Anyone have any ideas????

    Posted 12 years ago on Tuesday December 18, 2012 | Permalink
  25. Timestamp: 12/17/12 10:19:50 PM
    Error: ReferenceError: gf_apply_rules is not defined
    Source File: https://ala.asn.au/prace/
    Line: 732

    You are loading jQuery twice in the page; one of the versions is really old:

    <script type="text/javascript" src="https://ala.asn.au/wp-content/themes/ala/js/jquery-1.4.2.min.js"></script>

    Get rid of that first version and I think you will find that your form display properly, assuming there are no other jQuery or JavaScript errors.

    You will need to determine which plugin is loading that old version, and verify that it will continue to work with the newer version. If you need help finding the conflict, please follow these troubleshooting steps http://rkt.gs/testing

    Posted 12 years ago on Tuesday December 18, 2012 | Permalink
  26. Thanks!

    Posted 12 years ago on Tuesday December 18, 2012 | Permalink
  27. You're welcome c.devlin.

    Posted 12 years ago on Tuesday December 18, 2012 | Permalink