You have AJAX enabled and the reason why it doesn't appear to work is because it's not. The form isn't submitting. The problem is none of the Gravity Forms scripts or CSS are being enqueued on the page.
If you are using the shortcode in post or page content it will enqueue the scripts automatically. But only if it's executed in a standard loop. Because of how enqueue works if your theme is put together in a non-standard way, you may have to manually enqueue the necessary scripts.
If you are using the form widget in a sidebar, it will output the scripts automatically.
If you are using the function call directly in the PHP theme template, it does not automatically enqueue scripts because the function can be executed anywhere and therefore it can't enqueue scripts automatically due to how WordPress executes.
I don't know how you have this page setup as it doesn't look like a traditional WordPress page and is more of a standalone splash page. So i'm not sure which of the 3 scenarios above you are using. My guess it's either 1 or 3 above.
If you are using the shortcode and it's not enqueuing it could also be because the theme template is missing the required wp_head() function call in the header.php or wp_footer() function call in the footer.php file.
You may need to manually enqueue the necessary scripts. There is another function you use to do this. You would place this function call in your themes functions.php file, and wrap it in an if statement so it only executes if the page/post id matches this page so it's not output everywhere.
Documentation for the Gravity Forms enqueue function can be found here:
http://www.gravityhelp.com/documentation/page/Gravity_form_enqueue_scripts
General information on properly embedding a form can be found here:
http://www.gravityhelp.com/documentation/page/Embedding_A_Form
Posted 13 years ago on Wednesday October 12, 2011 |
Permalink