• Resolved Marty

    (@bozzmedia)


    I have a page with a simple form, when I submit the form the following console error appears. This also breaks the form and it won’t submit.

    [amp-form] Failed to parse response JSON: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data log.js:232:7
        B log.js:232
        error log.js:270
        KY amp-form.js:986
        (Async: promise callback)
        KY amp-form.js:980
        i amp-form.js:740
        (Async: promise callback)
        LY amp-form.js:739
        XY amp-form.js:698
        QK amp-form.js:658
        (Async: promise callback)
        QK amp-form.js:657
        (Async: promise callback)
        QK amp-form.js:652
        LK amp-form.js:510
        KG amp-form.js:363
        (Async: promise callback)
        KG amp-form.js:362
        jc action-impl.js:722
        execute action-impl.js:438
        Do document-submit.js:148

    If I review the page in amp disabled mode it works as expected.

    WP 6.0.3, PHP 7.4., cloudflare, I am viewing the site in desktop mode but the amp settings were in normal mode. I realize GF has issues with AMP, I didn’t expect it to impact the main desktop view.

    I’m disabling so I won’t be able to troubleshoot further, just FYI.

    • This topic was modified 2 years, 4 months ago by Marty.
    • This topic was modified 2 years, 4 months ago by Marty.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Milind More

    (@milindmore22)

    Hello @bozzmedia

    Thank you for contacting us, The gravity form is not AMP compatible.

    Failed to parse response JSON:
    From the message, it seems that Gravity form is responding with an invalid JSON which is highly likely because of redirect is enabled on form submission (confirmation)

    It can be tweaked to work with AMP using the mini plugin

    I hope this helps!

    Plugin Support Milind More

    (@milindmore22)

    @bozzmedia As we didn’t receive a response I’ll mark this as resolved. Feel free to open a new support topic if you require any further assistance.

    Thread Starter Marty

    (@bozzmedia)

    Thanks for the response and suggested fix, Milind!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘AMP conflict with gravity forms’ is closed to new replies.