WordPress.org

Ready to get started?Download WordPress

Forums

Gravity Forms Directory
[resolved] Forms with conditional logic not working with directory on same page (3 posts)

  1. rstoeber
    Member
    Posted 8 months ago #

    Forms do not display when I have a directory listing on the same page. (The only forms where we display a directory also include conditional logic, so it might be the conditional logic causing a problem.) I know this used to work because we have a dozen forms where we used this in the past. Unfortunately, nobody noticed when it broke so I can't tell what versions we had before. I know WordPress itself was upgraded recently, not sure about the plugins.

    If I disable the directory plugin, the form works properly. As soon as I enable the directory plugin, I get the directory to display, but the form does not appear.

    WordPress 3.7.1
    Gravity Forms 1.7.11
    Gravity Forms Directory & Addons 3.4.3

    This is how the code appears on the page:

    [directory form="22" page_size="0" search="false" entry="false" entryonly="true" entryanchor="false" wpautop="false" fulltext="false" lightboxsettings="images" titleshow="false" showcount="false" thead="true" tfoot="false" pagelinksshowall="false" showrowids="false" jssearch="false" linkemail="true" linkwebsite="false" limituser="false"]

    [gravityform id="22" name="Berkeley Yacht Club (Lobster) Cruise" ajax="true"]

    http://wordpress.org/plugins/gravity-forms-addons/

  2. ibreezer
    Member
    Posted 8 months ago #

    Without further information I can't replicate the same problem to be able to find a solution for it. A link to the site would be appreciated and if possible get them conditions you have to see if they could interfere somehow.

    Regards

  3. rstoeber
    Member
    Posted 8 months ago #

    The cause turned out to be an error in the file called gravity-forms-addons.php

    Around line 309 in that file I found the following:

    wp_enqueue_script('colorbox', plugins_url( "/colorbox/jquery.colorbox-min.js", __FILE__), array('jquery'));

    But that is wrong. The file is actually in the js directory, so it should be:

    wp_enqueue_script('colorbox', plugins_url( "/colorbox/js/jquery.colorbox-min.js", __FILE__), array('jquery'));

    After making that change everything started working properly again.

Reply

You must log in to post.

About this Plugin

About this Topic