{"id":16179254,"date":"2022-11-08T23:20:06","date_gmt":"2022-11-08T23:20:06","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/amp-conflict-with-gravity-forms\/"},"modified":"2022-11-08T23:42:47","modified_gmt":"2022-11-08T23:42:47","slug":"amp-conflict-with-gravity-forms","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/amp-conflict-with-gravity-forms\/","title":{"rendered":"AMP conflict with gravity forms"},"content":{"rendered":"<p>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&#8217;t submit.<\/p>\n<pre><code>[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\n    B log.js:232\n    error log.js:270\n    KY amp-form.js:986\n    (Async: promise callback)\n    KY amp-form.js:980\n    i amp-form.js:740\n    (Async: promise callback)\n    LY amp-form.js:739\n    XY amp-form.js:698\n    QK amp-form.js:658\n    (Async: promise callback)\n    QK amp-form.js:657\n    (Async: promise callback)\n    QK amp-form.js:652\n    LK amp-form.js:510\n    KG amp-form.js:363\n    (Async: promise callback)\n    KG amp-form.js:362\n    jc action-impl.js:722\n    execute action-impl.js:438\n    Do document-submit.js:148<\/code><\/pre>\n<p>If I review the page in amp disabled mode it works as expected.<\/p>\n<p>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&#8217;t expect it to impact the main desktop view. <\/p>\n<p>I&#8217;m disabling so I won&#8217;t be able to troubleshoot further, just FYI.<\/p>\n","protected":false},"template":"","class_list":["post-16179254","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/16179254","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":2,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/16179254\/revisions"}],"predecessor-version":[{"id":16179283,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/16179254\/revisions\/16179283"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=16179254"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}