Site logo

[Resolved] Gravity Forms AJAX doesn’t work when hooked via Elements

Home Forums Support [Resolved] Gravity Forms AJAX doesn’t work when hooked via Elements

Home Forums Support Gravity Forms AJAX doesn’t work when hooked via Elements

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1477002
    Hardik

    Hello

    I’ve deployed Gravity Forms using generate_after_do_template_part Block Hook on all blog posts. I’ve enabled ajax on the Gravity Forms but after submission of an entry, nothing happens in frontend but I do receive the data at backend. I also have ajax enabled on other forms that I’ve directly inserted on a page which works as intended.

    What could be the issue with hooking elements here?

    Thanks!

    #1477150
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    It looks like it’s requiring jQuery, but not adding it to the page.

    Try this function:

    add_action( 'wp_enqueue_scripts', function() {
        wp_enqueue_script( 'jquery' );
    } );
    #1477157
    Hardik

    Thank you! It’s working now.

    #1477164
    Tom
    Lead Developer
    Lead Developer

    You’re welcome 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.