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.

Form renders display : none using

  1. Huw
    Member

    All,

    Has anyone had this ? I render a form in template using

    <?php gravity_form(2, true, true); ?>

    And I get the following output:

    <div id="gform_wrapper_2" class="gform_wrapper" style="display: none;">

    Thus an invisible form !!!

    Also I have now twice managed to get the system to say *any* form title even things like HGAFGHASF or other random letter combo is already in use. Also when clicking on the buttons to create a new form sometimes nothing happens.

    Had to re-install plugin twice now because of this ?

    Any ideas what might be wrong please ?

    Using latest version of plugin and latest wordpress everything seems to be up to spec etc.

    Thanks for any and all help on this as it is my first time with GF so it may be me ... :)

    Posted 15 years ago on Saturday November 21, 2009 | Permalink
  2. If you have conditional logic setup on a field, the form will render with style='display:none;' until the conditional logic finishes it initial processing on load, then the form's display is set to block via javascript.
    The other strange behaviors all seem to be related to javascript, so my guess would be that you have a conflict with another plugin. When you start experiencing the issue, try deactivating all other plugins and see if it solves the problem. If it does, activate them one by one until you find the one creating the conflict. Send that to us and we will take a look at it.

    Posted 15 years ago on Saturday November 21, 2009 | Permalink
  3. jewelz24
    Member

    I had a similar problem and deactivated all my plugins. Turns out widget logic plugin was the culprit. But I love widget logic and now looking for an alternative that will work with gravity forms.

    any suggestions?

    Thanks
    Juliet

    Posted 14 years ago on Thursday May 6, 2010 | Permalink
  4. jewelz24
    Member

    I tried "widget block" plugin as well and the same issue took place. So I'm hoping that the good ppl at gravity forms will fix this within the plugin itself rather than me having to go without a solution to block certain widgets on certain pages using the mentioned pluggins.

    Thanks again.

    Posted 14 years ago on Thursday May 6, 2010 | Permalink
  5. Widget Logic doesn't use any JavaScript on the front end of the website. I wonder why disabling that plugin seemed to make this work? I use Widget Logic pretty heavily so I'd be interested to see how these two plugins conflict with each other.

    Posted 14 years ago on Thursday May 6, 2010 | Permalink
  6. If you're loading this in a page template with the function call (as Huw was), you need to load the JavaScript and CSS yourself.

    When displaying a form via a function call you will want to add the following code to your theme's function.php file:

    wp_enqueue_script("gforms_ui_datepicker", WP_PLUGIN_URL . "/gravityforms/js/jquery-ui/ui.datepicker.js", array("jquery"), "1.3.9", true);
    
    wp_enqueue_script("gforms_datepicker", WP_PLUGIN_URL . "/gravityforms/js/datepicker.js", array("gforms_ui_datepicker"), "1.3.9", true);
    
    wp_enqueue_script("gforms_conditional_logic_lib", WP_PLUGIN_URL . "/gravityforms/js/conditional_logic.js", array("gforms_ui_datepicker"), "1.3.9", true);
    
    wp_enqueue_style("gforms_css", WP_PLUGIN_URL . "/gravityforms/css/forms.css");

    From: http://www.gravityhelp.com/frequently-asked-questions/

    Or maybe you don't have the call to wp_footer in your footer.php template file?

    <?php wp_footer(); ?>

    http://www.gravityhelp.com/frequently-asked-questions/

    Also related:
    http://forum.gravityhelp.com/topic/form-doesnt-display-if-javascript-is-disabled#post-4093

    Posted 14 years ago on Thursday May 6, 2010 | Permalink