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.

Enabling Conditional Logic Causes Form To Disappear.

  1. Having a theme issue with Gravity Forms.

    When enabling conditional logic, the form disappears from the front end of the site.

    Test site up here:
    http://www.culliganmidmissouri.com.php5-24.dfw1-2.websitetestlink.com/sign-up/

    That is the page the form should show up of.

    The theme is a Genesis Framework Child theme... so it should all work flawlessly as it does on numerous other sites with similar configurations.

    I'd be more than happy to send login details to get this resolved more quickly. Thanks!

    Posted 13 years ago on Tuesday September 20, 2011 | Permalink
  2. This is most likely do to the script error you have here..

    screenshot: http://bit.ly/njVkH6

    It's breaking the conditional logic script and the form isn't being displayed.

    EDIT: I copied your page markup to my test area and removed the script portion on line 23-25 and lines 49-54 (the soundfile stuff) and the form works fine. There is a formatting issue, but the script problem was remedied.. So, there's the source of your issue.

    test page: http://bit.ly/oka5N7

    Posted 13 years ago on Tuesday September 20, 2011 | Permalink
  3. Hey Kevin,

    Removed the script on that page 2 weeks ago when you posted the solution and it fixed everything.

    But now we have a problem again, the form has disappeared again even though we haven't made any changes. The form is on the backend, but it's not showing up on the front-end.

    The site is live now, so here's the new link:
    http://www.culliganmidmissouri.com/sign-up/

    I'm not seeing any errors. Any idea why the form wouldn't be showing up?

    Posted 13 years ago on Wednesday October 5, 2011 | Permalink
  4. Firebug is still reporting a script error on the front end.. looks to be the same one as last time.

    screenshot: http://bit.ly/oYyg9s

    Posted 13 years ago on Wednesday October 5, 2011 | Permalink
  5. Thank you kevin,

    I don't even know how that code got back in the Header.php file. It was hard coded there again... I didn't think that was possible.

    :)

    Posted 13 years ago on Thursday October 6, 2011 | Permalink
  6. No worries. I've seen some magical things happen when it comes to code ;) Glad you got it ironed out.

    Posted 13 years ago on Thursday October 6, 2011 | Permalink
  7. crystales
    Member

    Hello, I'm having the same problem with the form disappearing when enabling conditional logic and can not figure out the cause of it. I am using Modernizm, a responsive theme. http://printpopular.com/?page_id=16

    Your help is greatly appreciated.

    Posted 13 years ago on Thursday October 20, 2011 | Permalink
  8. If you're using the php function to embed the form then you need to manually enqueue the Gravity Forms scripts/css so it knows to use them since this is outside of the wordpress loop. You can see this page for an example:

    http://www.gravityhelp.com/documentation/page/Embedding_A_Form

    Posted 13 years ago on Thursday October 20, 2011 | Permalink
  9. crystales
    Member

    Hi, Thanks for your quick response. I've manually inserted the form, and although it helped by showing the form, the field that was meant to be conditional was showing too.

    Just switched to default theme still using the Cart66 plugin. Upon its deactivation, the conditional logic works again. I would really like to be able to use the Cart66 plugin, it is the reason I purchased Gravity Forms developer. I am hoping you can help me troubleshoot rather than referring me to Cart66 ;)

    Fingers crossed.

    Posted 13 years ago on Thursday October 20, 2011 | Permalink
  10. your conditional logic script is being loaded now I see so that's a step in the right direction but it looks like your default forms.css file isn't being loaded. Check your form settings in the admin and make sure the "Output CSS" option is enabled.

    screenshot: http://bit.ly/rgjCUT

    Posted 13 years ago on Thursday October 20, 2011 | Permalink
  11. crystales
    Member

    Thank you for the suggestion. I have since enabled Output CSS, but still no dice. Hmmm. Have reset all permissions to 775. Been scouring the forums for hours. Any other ideas? I can send login. I have this wonderful plugin I can not use to its full potential :/

    Posted 13 years ago on Thursday October 20, 2011 | Permalink
  12. http://rhymesanddesigns.com/join/

    My form is not showing up. All the fields/lines are coded with a display of none. Does anybody know what would cause this? And how to fix?

    Posted 13 years ago on Sunday October 23, 2011 | Permalink
  13. @cctheone, I am not sure what your page is supposed to look like. It appeared to render only partially for me. Please post a screenshot.

    Sounds like your form is using conditional logic to hide some fields. The reason everything has "display:none;" is that's how fields are hidden, then unhidden using JavaScript. There is a JavaScript error on your page preventing the Gravity Forms JavaScript from doing its job and unhiding the fields.

    I see at least one error right now:

    [html]
    Error: "bx".hover is not a function
    Source File: http://rhymesanddesigns.com/join/
    Line: 143

    Does this form work properly from the form preview?

    Posted 13 years ago on Monday October 24, 2011 | Permalink
  14. @crystales please send me an admin login for the website to chris@rocketgenius.com and I will take a peek at it for you.

    Posted 13 years ago on Monday October 24, 2011 | Permalink
  15. Not sure if you can see the preview at the link below:
    http://rhymesanddesigns.com/wp-content/plugins/gravityforms/preview.php?id=1

    But it is showing up in my preview.

    Posted 13 years ago on Monday October 24, 2011 | Permalink
  16. We cannot see your preview unless we are logged in with proper role.

    If it works in preview and not on your live site, it's due to a plugin or theme conflict. Please start troubleshooting here: http://www.gravityhelp.com/documentation/page/Testing_for_a_Theme/Plugin_Conflict

    Posted 13 years ago on Monday October 24, 2011 | Permalink
  17. It seems to be my theme. Is there a way I can work around it. I'm using thesis??

    Posted 13 years ago on Monday October 24, 2011 | Permalink
  18. The work around is to fix the conflict. Whatever JavaScript errors exist need to be fixed, then the conditional logic will work. If there are JavaScript errors in the stock theme, you should contact the theme developer to help resolve them.

    Posted 13 years ago on Tuesday October 25, 2011 | Permalink
  19. Crystal, I responded to your email. When the Gravity Form is inserted with the Gravity Forms shortcode, it shows fine. When inserted with the Cart66 shortcode, it does not display. I would contact Cart66 and ask them about this. Thank you.

    Posted 13 years ago on Friday November 4, 2011 | Permalink
  20. Anonymous
    Unregistered

    I'm having this same issue as well. The form works fine, until I enable conditional logic on one. Both the preview and the font-end stop working. So I assume it's not the theme, since the theme isn't loaded in the preview. Here's the front-end location: http://americanconstructionsupply.com/contact-us/ Please help soon.

    Posted 12 years ago on Tuesday May 1, 2012 | Permalink
  21. The behavior you are describing would be caused by a javascript error. See this screenshot.

    The first thing you should do when upgrading to a new version and you encounter a javascript error is to completely clear your browser cache, restart your browser and try again. Your browser may be loading javascript from cache and therefore is not loading new javascript associated with the new release. That is the first thing to do.

    If clearing your cache does not work then what we will need you to do is test for theme and plugin conflicts to see if there is a conflict occurring with other code on your site. Follow these instructions:

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

    Let us know how it goes and we can go from there to help you resolve the issue. Also, in the future, please create your own, separate post so we can better help solve specific issues per person. Often times, issues may seem related, but they are not.

    Posted 12 years ago on Tuesday May 1, 2012 | Permalink
  22. Anonymous
    Unregistered

    I've contacted the theme's developer (as that's where the javascript error you showed in your screenshot was) to see if they can help.

    It obviously wasn't a caching issue, or it would've worked fine for you. Also, it seems a little unrealistic to have to go through and completely disable all plugins, and switch to the default theme. Especially when running on a multisite environment when some plugins are network enabled, etc. If you know a Javascript error is the problem, and you can see one on the page, isn't it best to just trouble-shoot that error?

    Should I create a new ticket for my specific case? Thanks.

    Posted 12 years ago on Tuesday May 1, 2012 | Permalink
  23. We just released v. 1.6.4.1.1 if you want to see if that changes anything on your situation.

    BTW, your theme is using jquery-1.4.2 - jQuery and Gravity Forms harnesses jQuery v 1.7.1 and enqueues it via WordPress.

    Posted 12 years ago on Tuesday May 1, 2012 | Permalink
  24. My forms with conditional logic disappeared too. For my theme I had to add the latest jQuery and then edit the CSS to prevent some other weirdness from that cropped-up as a result of introducing the latest jQuery.

    Posted 12 years ago on Friday May 4, 2012 | Permalink
  25. I have the same problem: conditional logic makes the form disappear.
    I found a conflict with J shortcodes plugin. When deactivated forms are back correctly.
    The problem is that I need J shortcodes plugin to work with J memberwing plugin.
    Please help!!

    Posted 12 years ago on Friday May 4, 2012 | Permalink
  26. David Peralty

    dartwin - You will want to contact the plugin developer and ask him not to pull in an old version of JQuery.

    Posted 12 years ago on Monday May 7, 2012 | Permalink
  27. Anonymous
    Unregistered

    Yeah, looks like outdated versions of jQuery is the problem. The developer of my theme updated it from 1.4.2 to 1.7.2 and it works great now.

    Posted 12 years ago on Monday May 7, 2012 | Permalink
  28. Awesome - glad you got it sorted out. Thanks for letting us know!

    Posted 12 years ago on Monday May 7, 2012 | Permalink

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