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.

Preview Form works but not live form

  1. When I preview my form it functions just fine. However the live version doesn't function correctly at all. I am developing a site using Optimize Press theme.

    http://automatedbusinessformula.com/check-up

    Don't have any other plugins installed.

    Once you select "yes" for the first question a second should appear. It doesn't. But when I hit the next button I get the error box showing the second question.

    Posted 12 years ago on Thursday October 25, 2012 | Permalink
  2. David Peralty

    You have a second JQuery call that is making a mess of things:
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>

    If you can remove that, it should go a long way towards helping.

    Posted 12 years ago on Thursday October 25, 2012 | Permalink
  3. Ok, Thanks.

    Unfortunately I have no clue where that script is being called from to remove. Is it in my theme or the GF plugin?

    Posted 12 years ago on Friday October 26, 2012 | Permalink
  4. Found this code in my functions.php file and commented it out:

    function my_init() {
    if (!is_admin()) {
    wp_enqueue_script('jquery');
    }
    }
    add_action('init', 'my_init');

    Still no success.

    Posted 12 years ago on Friday October 26, 2012 | Permalink
  5. Ok so I've narrowed it down to a JQuery issue between GF and my Optimize Press theme. The only conditional logic I have on my form now is the next button (it should only appear after the last question is answered).

    I would love to be able to get this resolved so I can restore my original conditional logic functionality to the form.

    Posted 12 years ago on Friday October 26, 2012 | Permalink
  6. David Peralty

    So the <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script> comes from your theme? If so, contact the theme developer to see if they can resolve the issue for you, or look in your head.php file to see if you can remove it, or in your functions.php file. All my best!

    Posted 12 years ago on Friday October 26, 2012 | Permalink
  7. I'm assuming it's coming from the theme since I don't have any plugins installed at the moment. However, the same thing is happening when I activate the Twenty Eleven Theme so I may be off with my assessment.

    Seems like a lot of trouble for using conditional fields...

    Posted 12 years ago on Friday October 26, 2012 | Permalink
  8. Ok. I figured it out.

    That JQuery script was being loaded depending on the Page Template I was using. In Optimize Press the default template is "Default Template" I couldn't locate which php file it was referencing so I just changed the template. Once I did that the conditional logic worked.

    I guess for a solid solution for this issue would be to locate the Default Template php and remove the reference to the jquery script in there.

    Hopefully this will help anybody else who has problems with conditional logic and the Optimize Press theme.

    Thanks David

    Posted 12 years ago on Friday October 26, 2012 | Permalink
  9. David Peralty

    No problem, and good luck. You might still want to inform the theme developer so they can have this fixed for future releases.

    Posted 12 years ago on Friday October 26, 2012 | Permalink

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