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.

Not Recieving Entries

  1. I made a form and styled it up to be placed inside Anything slider that accepts HTML. However when I went to test it the form disappears after submitting and the entry is not passed to backend. What could be going on?
    Heres the form....http://www.bestkarateclassesforkids.com/

    Posted 12 years ago on Thursday December 22, 2011 | Permalink
  2. The issue is how you have implemented it. I'm not familiar with the Anything slider. But you have to be careful when using Gravity Forms outside of a standard WordPress page or post using the shortcode.

    If the shortcode isn't called from a standard loop in a standard page or post then it isn't going to be able to enqueue it's scripts or CSS. Because you have implemented it using the Anything slider, that is going to be the case with your implementation.

    What you need to do is first you need to make sure you manually enqueue the necessary scripts and CSS for Gravity Forms on your homepage. You would do this by using the gravity_form_enqueue_scripts function. This function is documented here:

    http://www.gravityhelp.com/documentation/page/Gravity_form_enqueue_scripts

    You would use this function in your themes functions.php file. If you only need this for the homepage then you should wrap the function call in an if statement that checks if it's the homepage or not. For example:

    if ( is_home() ) {
        // This is a homepage place the function within this if statement
    }

    The other thing you are going to want to do is because the form appears in a slider, you want to enable the AJAX option on the form shortcode or function call. This way when the form is submitted it does not refresh the page which could cause problems with the slider when the page refreshes.

    Posted 12 years ago on Thursday December 22, 2011 | Permalink
  3. Thanks for your quick reply, however Im not sure I am implementing it correctly.
    I followed it literally and placed this inside the bottom of the functions.php.
    `if ( is_home() ) {<?php
    gravity_form_enqueue_scripts(1, true);
    ?>
    }`

    That caused parsing errors in the dashboard. So, I tried

    if ( is_home() ) {
    gravity_form_enqueue_scripts(1, true);
    }

    I havent learned php yet so I probably messed it up because the second way didnt work either and the form disappears still after submission.

    Posted 12 years ago on Friday December 23, 2011 | Permalink
  4. I since the site is only the homepage and a blog I tried the straight enqueue script in the header.php and that didnt work and threw off al the css I did.

    Posted 12 years ago on Friday December 23, 2011 | Permalink
  5. kyle
    Member

    I notice when I submit, but there is an error, the form is still there, it just moves out of the bounds of the slider, so you can't see it. If you have Firebug and Firefix, you can use it to see the issue.

    There is a float: right set on one of the divs (under the video div I think ), that when removed will reveal the form again. Although errors don't show up correctly.

    The HTML/CSS is pretty extensive, which I am sure is part of the issue. Try disabling your custom styles and see how that works. Then re-add them slowly, testing as you go (but not inline, use your Stylesheet)

    Posted 12 years ago on Friday December 23, 2011 | Permalink