Gravity form Load By Ajax Cannot Submit – Error 400


I have an issue with Gravity forms. I successfully loaded Gravity Forms via ajax, but I got an error of 400 when I submit the form.

I tried all solutions but still can’t submit the forms.

here is my ajax code

var data = {
            action': 'step_3_ajax_content',
        type: "POST",
        url: ajax.url,
        data: data,
        beforeSend: function() {
            success: function(response) {

to show forms I use shortcode

<?php echo do_shortcode( '[gravityform id="1" title="false" description="false" ajax="true"]' ); ?>

I get error /wp-admin/admin-ajax.php#gf_1:1

in my header gravity_form_enqueue_scripts (1, true); // Ajaxed form id = 1

Baim Quraisy 1 year 2022-02-03T22:51:08-05:00 0 Answers 0 views 0

Leave an answer