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, Plain Page and Gravity Forms v1.6.4 Beta no show

  1. Hi

    I am running , 1.6.4 beta, conditional logic on a plain page template. There is something wrong with the conditional logic as the form is not showing. If i use a default template page and in preview mode the form including the conditional logic works fine, just not when i use plain page template. Code below.

    Hope you can help

    Thanks

    Mark

    <?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='/wp-includes/js/jquery/jquery.js?ver=1.7.1'></script>
      <script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js'></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 April 26, 2012 | Permalink
  2. Do you have a link to this page and are you trying to include the GF scripts and styles manually because you aren't using wp_head? Trying to figure out why you have it written that way since the scripts and styles automatically show in the code when you place a form in a page or post via the WP admin.

    Posted 12 years ago on Thursday April 26, 2012 | Permalink
  3. http://testing.menupot.com/basket/

    mark

    Posted 12 years ago on Thursday April 26, 2012 | Permalink
  4. Any idea what this script error is to? Could be the culprit.

    http://grab.by/dj6W

    Posted 12 years ago on Thursday April 26, 2012 | Permalink
  5. Hi Rob,

    Thanks for the spot, corrected. But still does not work under a plain page template

    MArk

    Posted 12 years ago on Thursday April 26, 2012 | Permalink
  6. If it works in the formbuilder Preview, but not on your page - then there is something wrong with your page template. Care to answer any of my questions I posed above?

    Posted 12 years ago on Thursday April 26, 2012 | Permalink
  7. fixed, but even in that we have the non rendering scenario on the plain template

    Posted 12 years ago on Thursday April 26, 2012 | Permalink
  8. Mark, just noticed in your code above you are referencing two versions of jQuery one after the other. An old one after a newer one. Can you keep just 1.7.1?

    Also, our scripts are output in wp_footer so you'll notice the conditional logic script is down there as well, which is different because its the Beta. So you are doubling up on two scripts.

    Posted 12 years ago on Thursday April 26, 2012 | Permalink
  9. Wp_head sorted.

    Working

    Thanks for your hep...again

    Mark

    Posted 12 years ago on Thursday April 26, 2012 | Permalink
  10. Right on Mark, glad to help and glad you got it working.

    Posted 12 years ago on Thursday April 26, 2012 | Permalink

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