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 Not Working With Theme

  1. hmarcks
    Member

    When conditional logic is added, my form disappears. I've determined this is a theme issue, as it works in a different theme, but I don't know how to troubleshoot from there.

    Located at: http://revelstokewhisky.com/ginka
    - in the contact section

    Any help appreciated, thank you.

    Posted 12 years ago on Monday June 18, 2012 | Permalink
  2. I see you are including an old verision of jQuery - you could try updating that to the latest version.

    Screenshot

    I also don't see any gravityforms scripts or styles being output anywhere. Does your form use wp_head and wp_footer?

    Posted 12 years ago on Monday June 18, 2012 | Permalink
  3. hmarcks
    Member

    Will updating jQuery risk other problems with the theme?

    The page template with the form includes wp_head and wp_footer.

    When I inspect the "Contact" page with FireBug, I see the form (inside #recipeContainer) and it appears when I remove the "display:none" style, but obviously not the fix since the conditional logic won't work.

    Posted 12 years ago on Monday June 18, 2012 | Permalink
  4. You should always be running the most up-to-date versions of jQuery. Your theme and plugins should be updated to reflect as changes/fixes/enhancements come about. The display:none shows when you have conditional logic working, as soon as your page encounters a JavaScript error it stops executing the JavaScript - that's why the display:none is not being taken away by our JS - because of interference. When you preview the form from within the formbuilder preview - does it work?

    Posted 12 years ago on Monday June 18, 2012 | Permalink
  5. hmarcks
    Member

    I updated the JQuery to the latest version, no luck.

    The form does work when previewed in the form builder.

    Posted 12 years ago on Monday June 18, 2012 | Permalink
  6. Thanks, how are you placing this form on the page? You may need to enqueue the Gravity Forms scripts and styles. See this page, all the way at the bottom:

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

    Posted 12 years ago on Monday June 18, 2012 | Permalink
  7. hmarcks
    Member

    Success! I was placing the form with manual shortcode. The enqueue worked.

    Thank you for your speedy support.

    Posted 12 years ago on Monday June 18, 2012 | Permalink
  8. Sweet action, glad to help!

    Posted 12 years ago on Monday June 18, 2012 | Permalink

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