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 makes entire form dissapear on WordPress Page Preview

  1. MaxxForce
    Member

    I am using a "plain page" template for my WordPress. Conditional Logic shows and functions perfection on form page preview, but in WP Page preview it disappears. When I remove Conditional Logic from fields, form appears again on WordPress Page. Any ideas? Thanks

    Posted 12 years ago on Thursday March 15, 2012 | Permalink
  2. MaxxForce
    Member

    I forgot to mention I am using the following code in the page template:

    <?php
    /*
    Template Name: plain page
    */
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    <meta name="MSSmartTagsPreventParsing" content="true" />
    <meta http-equiv="Imagetoolbar" content="No" />
    <title>My Form Title</title>
    <style type="text/css">
    body {font-size:13px;}
    </style>
    <link rel='stylesheet' id='gforms_css-css' href='<?php bloginfo('url'); ?>/wp-content/plugins/gravityforms/css/forms.css?ver=3.0.1' type='text/css' media='all' />
    <script type='text/javascript' src='<?php bloginfo('stylesheet_directory'); ?>/includes/js/jquery-142.js?ver=1.4.1'></script>
    <script type='text/javascript' src='<?php bloginfo('url'); ?>/wp-content/plugins/gravityforms/js/conditional_logic.js?ver=1.3.13.1'></script>
    </head>
    <body>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <?php the_content('read more'); ?>
    <?php endwhile; endif; ?>
    <?php wp_footer(); ?>
    </body>
    </html>

    Posted 12 years ago on Thursday March 15, 2012 | Permalink
  3. MaxxForce
    Member

    Ok. I think I might have discovered what's wrong. I didn't read far enough. Will post back if I solve

    Posted 12 years ago on Thursday March 15, 2012 | Permalink
  4. MaxxForce
    Member

    Ok I got it. Kevin, on your pasted code http://pastie.org/pastes/1090660/text and also on your help page http://www.gravityhelp.com/creating-a-modal-form-with-gravity-forms-and-fancybox/ , the code is missing the <?php wp_head(); ?> above the </head> at the bottom of the page. I inserted that and everything works like a dream. Thanks

    Posted 12 years ago on Thursday March 15, 2012 | Permalink
  5. Awesome, glad you got it working, thanks for letting us know!

    Posted 12 years ago on Friday March 16, 2012 | Permalink

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