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

  1. rstoeber
    Posted 2 years 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"]


  2. ibreezer
    Posted 2 years 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.


  3. rstoeber
    Posted 2 years 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Gravity Forms Directory
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic