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 bug

  1. dimitrilucy
    Member

    Hi all,

    I bought a license of gravity forms, I tested it and it works until I turn the logical conditions.
    When I activate a logical condition, the form disappears.
    I tried applying the theme "Twenty Ten" and then it works ..
    So the problem is my theme ! It's a theme of "http://www.templatemonster.com/"

    What should I do?

    Thank you in advance.

    Posted 11 years ago on Thursday December 20, 2012 | Permalink
  2. Please provide a link to your form. This is not a bug in Gravity Forms but is most likely a JavaScript or jQuery error on the page which is causing our jQuery to fail, leaving the form hidden. The only way we can help you if is you provide a link to the page on your site where the form is embedded, so we can check for errors.

    Thank you.

    Posted 11 years ago on Thursday December 20, 2012 | Permalink
  3. dimitrilucy
    Member

    Thank you for your reply.
    The site is for a client and I can't put it online as it is not FUNCTIONAL ..
    It's local for now.
    No other solutions in the meantime?

    Posted 11 years ago on Thursday December 20, 2012 | Permalink
  4. The solution is to find and fix the JavaScript error. We can help you, but only if we can see the site. If we cannot, you can use the Chrome developer tools, Firebug or the Web Developer toolbar to check for JavaScript errors.

    You can also follow the basic troubleshooting steps here http://rkt.gs/testing

    Posted 11 years ago on Thursday December 20, 2012 | Permalink
  5. dimitrilucy
    Member

    I used Chrome developer tools and displays this error;

    [jquery.form] terminating; Zero items found by selector jquery.form.js: 904
    Uncaught ReferenceError: gf_apply_rules is not defined localhost: 1

    Does it help you? If so what should I do?

    Thank you in advance.

    Posted 11 years ago on Thursday December 20, 2012 | Permalink
  6. Chances are you are including two versions of jQuery in the page, or you have the wrong version of jQuery enqueued. Can you check for multiple references to jquery or jquery.min in the source of one of your pages?

    The other issue is that jquery.form.js is not a Gravity Forms file. That is probably coming from another plugin or the theme in use. If you go through the troubleshooting steps http://rkt.gs/testing you should be able to find out where that error is coming from.

    Posted 11 years ago on Thursday December 20, 2012 | Permalink
  7. dimitrilucy
    Member

    I put the site online so that you can help me.
    I add a simple form without logical conditions in the "structure" tab and it works.
    But I added another form with logical conditions in the "devis" tab and then nothing is displayed.

    Url; http://www.home-cube.net

    Thank you in advance

    Posted 11 years ago on Thursday December 20, 2012 | Permalink
  8. There is some sort of maintenance mode active now. I received this message:

    Le site est en maintenance

    Posted 11 years ago on Thursday December 20, 2012 | Permalink
  9. David Peralty

    It shows "Maintenance Mode" for me.

    Posted 11 years ago on Thursday December 20, 2012 | Permalink
  10. dimitrilucy
    Member

    oohh sorry.. I thing is good now, you can go to se site.

    Posted 11 years ago on Thursday December 20, 2012 | Permalink
  11. This is the current error:

    Timestamp: 12/20/2012 2:09:49 PM
    Error: ReferenceError: gf_apply_rules is not defined
    Source File: http://www.home-cube.net/wp-content/themes/theme5865/js/jquery-1.7.2.min.js?ver=1.7.2
    Line: 2

    Have you already tried disabling plugin and the theme to see where the conflict lies? Can you start by disabling Contact Forms 7? There is a ton of jQuery functionality on that site, and the conflict could be coming from any of it. Please follow these instructions to find the conflict http://rkt.gs/testing

    Posted 11 years ago on Thursday December 20, 2012 | Permalink
  12. Additionally, I could not navigate to any pages on the site at all. The blue buttons on the bottom did not change the page and I never saw a Gravity Form on any page. I was using Firefox 17.0.1 on Windows 7.

    Posted 11 years ago on Thursday December 20, 2012 | Permalink
  13. dimitrilucy
    Member

    I've searched the conflict following the instructions of your links and when I change template everything works.
    So this is the template that problem, even disabling "contact form" does not work.
    The site works fine, all tabs are visible but when you click on the tab "structure" where there form with logical conditions, as soon as you click on the site no longer works, you must refresh

    What should I do to make it work without changing templates?

    Thank you for your answers.

    Posted 11 years ago on Thursday December 20, 2012 | Permalink
  14. There is probably something in the theme's functions.php which is fouling things up. You have determined that the theme is the problem. Now you need to determine what it is about this theme which is creating the conflict.

    Posted 11 years ago on Thursday December 20, 2012 | Permalink
  15. dimitrilucy
    Member

    Can I send you the file "functions.php" you look?
    Or where can I find help?
    I'm not a pro and I will not be able to fix the problem so I buy your license for nothing ..

    Posted 11 years ago on Thursday December 20, 2012 | Permalink
  16. Please copy the full contents of your theme's functions.php and paste it at the website pastebin.com or pastie.org. The issue is with your theme and we can't guarantee that we can get Gravity Forms working with your theme.

    Posted 11 years ago on Friday December 21, 2012 | Permalink
  17. dimitrilucy
    Member

    Here is the url of the file "functions.php" of my theme

    http://pastebin.com/pFEHyne5

    I hope you will be able to solve the problem ..
    I noticed also that the total of my forms do not functioned. it remains to 0.00
    It works only if I put
    "<? Php echo do_shortcode ([gravityform id = 1 name = ContactUs title = false description = false] ');>"

    in the file "wp-config" of my wordpress but the problem with that, It's display the form in question on all pages ..

    Thanks in advance.

    Posted 11 years ago on Saturday December 22, 2012 | Permalink
  18. The total not working is related to the same error.

    Don't embed a form in your wp-config.php file. That's not a good solution.

    I will take a look at your functions.php and see if I can find out what might conflict. Ultimately, you may need to go to the developer of this theme and see where the conflict lies. Because the form works with the twenty ten theme, Gravity Forms is functioning properly. The problem is with the theme. We will see if we can help you with that.

    Posted 11 years ago on Saturday December 22, 2012 | Permalink
  19. Looking at the pastebin, the functions.php is including a lot of external files, and the problem could lie in any one of those files. Please contact the theme provider for support on this issue. As I explained previously, Gravity Forms is functioning correctly with the Twenty Ten theme. The problem is with the theme.

    Posted 11 years ago on Saturday December 22, 2012 | Permalink
  20. I'm having the same problem after adding a modified jQuery scroller to my Theme's footer.php file.
    The footer displays on every page.

    Here's the footer code with the jQuery script included. Let me know if this conflict can be resolved:

    http://pastie.org/5617163#8

    Posted 11 years ago on Thursday January 3, 2013 | Permalink
  21. Can you share the link to the page on your site where the form is embedded and explain what issue you are having with the form on that page? Thank you.

    Posted 11 years ago on Thursday January 3, 2013 | Permalink