This e-shop using cookies

We use cookies on our website. Some are essential, while others help us improve this site and your user experience. Do you agree to the use of all cookies?

Ajax Gravity Forms -

When the environment is clean, Gravity Forms AJAX is bulletproof. In a messy WordPress environment, it is often the canary in the coal mine that reveals deeper site issues.

If you are building a Gravity Form and you do not check that AJAX box, you are doing your users a disservice. It transforms a clunky web form into a modern, responsive interface. It is the bridge between the rigid architecture of WordPress and the fluid expectations of the modern web user. ajax gravity forms

The benefits are profound:

function my_gf_ajax_scripts() { if ( has_shortcode( get_post()->post_content, 'gravityform' ) ) { wp_enqueue_script( 'my-gf-ajax', get_template_directory_uri() . '/js/gf-ajax.js', array('jquery'), '1.0', true ); wp_localize_script( 'my-gf-ajax', 'my_ajax_obj', array( 'ajax_url' => admin_url( 'admin-ajax.php' ), 'nonce' => wp_create_nonce( 'gf_ajax_nonce' ), ) ); } } add_action( 'wp_enqueue_scripts', 'my_gf_ajax_scripts' ); When the environment is clean, Gravity Forms AJAX

To turn it on: