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.

Forms display on one page, not on another w/ identical elements

  1. I found a closed topic that was very similar to mine, but since it was closed I couldn't ask there :)

    I have 2 different forms... one is admittedly more simple than the other, but the more complex one used to work fine and I'm not sure why it stopped displaying (I did just upgrade to the latest version of gravity forms, so that might(?) have something to do with it?)

    The two forms in question are displayed on pages that use identical templates (identical widgets, identical page templates), but while http://www.lafayette-online.com/ads/ works fine... http://www.lafayette-online.com/ads/add-restaurant/ does not display.

    I checked in Firebug for javascript errors and did not see any, and I turned off all of the conditional logic in the Add Restaurant form, but still no joy.

    Any ideas?

    Posted 14 years ago on Friday March 25, 2011 | Permalink
  2. Here's something odd... the forms that show up do not have this and I would guess this is why it's an issue...

    div class='gform_wrapper' id='gform_wrapper_3' style='display:none'

    What would be causing the form to insert the display:none?

    Posted 14 years ago on Friday March 25, 2011 | Permalink
  3. The display none is added to conditional logic forms and then jQuery is used to unhide the fields that should be visible.

    Your page actually does have a Javascript error. Here is a screenshot:

    http://grab.by/9GJz

    So you would first have to determine why you have a Javascript error and correct it as Javascript errors cause the browser to quit executing Javascript which would prevent a conditional logic form from being displayed.

    I also see you are using the WP-Minify plugin. We've had reports that on some sites this causes problems with Gravity Forms Javascript. So if after resolving the Javascript error I included a screenshot of above you still have a problem, try testing with WP-Minify deactivated.

    Posted 14 years ago on Friday March 25, 2011 | Permalink
  4. Wouldn't that same error cause the forms to not load on the other page I mentioned? They're using the exact same templates and have the same options enabled/disabled.

    The only difference I can see is that for some reason, the form on the Add Restaurant page is putting that display:none directive in the div for the form wrapper.

    That particular form won't even display in the preview and I suspect the mystery display:none is to blame.

    Posted 14 years ago on Friday March 25, 2011 | Permalink
  5. Ok... I re-enabled the sidebar social thing, because disabling it just caused it to not display, not not load in the first place, hence the problem.

    Is it a bug that if you enable conditional logic, and then disable it later, that the display:none never goes away?

    Posted 14 years ago on Friday March 25, 2011 | Permalink
  6. Only forms using Conditional Logic would have this problem, and only forms that have Conditional Logic display a display: none in the form wrapper. So, the forms have to be different and only forms with Conditional Logic will have a problem if there is a Javascript error on the page that causes Javascript to quit executing.

    The display: none isn't to blame, it's by design. The entire form is hidden and then Javascript is used to only display the fields that should be displayed based on conditional logic. HOWEVER if something else on your site is causing a Javascript error, then these fields can't be unhidden because once there is a Javascript error your browser doesn't execute the remaining Javascript on the page.

    Posted 14 years ago on Friday March 25, 2011 | Permalink