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.

Gravity Forms Not Showing After Updating

  1. Ben
    Member

    Hello,

    I just updated to the latest version of gravity forms, which just broke my previously working embedded form that contained conditional logic (it just no long appears, but no errors are given). I believe the problem is that the scripts for conditional logic aren't being correctly embedded. I used to use "gravity_form_enqueue_scripts(4, false);" to do this. However, after updating without changing any code, I'm getting the error that gravity_form_enqueue_scripts is an undefined function.

    Any ideas?

    Thanks,
    Ben

    Posted 11 years ago on Saturday May 5, 2012 | Permalink
  2. I'm having same issue - after update, any forms with conditional logic aren't displaying. CSS display:none is being added to the form.

    Posted 11 years ago on Saturday May 5, 2012 | Permalink
  3. Celer Max - I discovered this from reading another post.

    WordPress ships with JQuery 1.7.1 which is what Gravity Forms expects to see. If your theme is calling an earlier version, the forms won't display. This is what was happening with my site - I was calling JQuery from ajax.googleapis.com. When I removed the call, the forms started displaying again.

    Posted 11 years ago on Saturday May 5, 2012 | Permalink
  4. Ben
    Member

    Kristof,

    I saw those posts too, but I wasn't sure how to fix that. (Sorry, I'm a bit of a novice!). I noticed one person was able to fix it by having their theme call JQuery 1.7.1 instead of 1.4.4. Do you have any experience with the Thesis theme or know of an easy way to do this?

    For now, I just reinstalled an old version of gravity forms that I had floating around, but I'd like to figure out how to actually fix this.

    -Ben

    Posted 11 years ago on Saturday May 5, 2012 | Permalink
  5. Look in Header and Footer file for a script call to ajax.googleapis.com. Try removing it first and see if that works. If you want to try updating the version, I believe this is the latest

    src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"

    Posted 11 years ago on Saturday May 5, 2012 | Permalink
  6. trond
    Member

    Try to install the plugin: Restore Jquery.
    This will restore the version of jQuery being loaded to the one that comes bundled with WordPress. It works wery well for me, and the forms display again.
    Link to Restore Jquery: http://wordpress.org/extend/plugins/restore-jquery/

    Posted 11 years ago on Saturday May 5, 2012 | Permalink
  7. sheetz@midwestbaseball.org
    Member

    Anybody have any luck with this? My forms still aren't showing or previewing.

    The Restore Jquery didn't work for me and I can't find any reference of Jquery or ajax.googleapis.com in any header or footer file

    Posted 11 years ago on Saturday May 5, 2012 | Permalink
  8. sheetz@midwestbaseball.org
    Member

    I also noticed the total option under the pricing category isn't working either.. so this all has to do with latest WP update...

    "jQuery and jQuery UI
    WordPress now includes the entire jQuery UI stack and the latest version of jQuery: 1.7.1."

    ?

    Posted 11 years ago on Saturday May 5, 2012 | Permalink
  9. David Peralty

    sheetz - Can I have you try this?
    http://www.gravityhelp.com/documentation/page/Testing_for_a_Theme/Plugin_Conflict

    Posted 11 years ago on Monday May 7, 2012 | Permalink
  10. ok, i've followed all the necessary and recommended steps for getting the inline style="display:none" off my form in the source code and nothing is working. please see the page and let me know what's going: http://edgeofthecarolinas.com/production-order/

    i've looked through the database for a hack, but there's no apparent hack. I've installed a different form on this page and it comes up fine. I've duplicated the form and the duped form repeats the same problem. it's gotta be the form. There's no conditional logic in the form, it's just a really long form.

    HELP!

    Thanks.

    TD

    Posted 11 years ago on Friday May 25, 2012 | Permalink
  11. here's a follow up: i DID in fact have some conditional logic in the form. when i got rid of the conditional logic, the form worked. here's got to be a query conflict in there...will continue to look for the query problem.

    Posted 11 years ago on Friday May 25, 2012 | Permalink
  12. David Peralty

    You have a JS error in custom.js
    Uncaught TypeError: Property '$' of object [object Window] is not a function

    Also, the display:none belongs in the form when there is conditional logic.

    Posted 11 years ago on Friday May 25, 2012 | Permalink
  13. Awesome. Thanks. I'll check it out.

    Posted 11 years ago on Saturday May 26, 2012 | Permalink
  14. jconroy
    Member

    Seeing the same/similar issue.

    I can see the form when logged in but not when I am logged out.

    Jquery version looks fine but this appears to be being embedded above the gravity scripts when I'm not logged in:

    <script type='text/javascript'>
    /* <![CDATA[ */
    var gf_global = {"gf_currency_config":{"name":"Australian Dollar","symbol_left":"$","symbol_right":"","symbol_padding":" ","thousand_separator":",","decimal_separator":".","decimals":2}};
    /* ]]> */
    </script>

    Update: also when not logged in I get the following js error:

    conditional_logic.defaults is undefined

    Update 2: supercache needed to be flushed. Seems to have solved my problems

    Posted 11 years ago on Saturday May 26, 2012 | Permalink
  15. David Peralty

    Yeah, caching is definitely a pain when working on things like this. Glad you figured it out.

    Posted 11 years ago on Sunday May 27, 2012 | Permalink