Hi,
Just now test this with AMP for WP – Accelerated Mobile Pages
By Ahmed Kaludi, Mohammed Kaludi
https://www.ads-software.com/plugins/accelerated-mobile-pages/
It doesnt work, the Contact form does not show.
]]>I just ignored the recaptcha spam validation to fix the email sending problem
You can see the change here: https://github.com/eebecker/amp-contact-form-7
I installed the plugin, activated it, but yet the form won’t show on AMP site ??
Such a shame but thanks for creating it anyway, at least for someone it worked
]]>Love the plugin, but noticed getting amp error
The tag ‘FORM [method=POST]’ requires including the ‘amp-form’ extension JavaScript
]]>CROSS POSTING HERE TOO
So apparently CF7 still doesn’t properly support AMP and I’m using a plugin to get it working.. (AMP Contact FORM 7 – AMPCF7) and when you submit the form, its says
“Failed to send your message. Please try later or contact the administrator by another method.”
in that red box no one likes to see.
what, how, ideas, or ???? to get this fixed?
Of note: submitting the form is generating a 403 error:
POST https://www.yugioh-world.com/wp-admin/admin-ajax.php?action=ampcf7_submit_form&_wp_amp_action_xhr_converted=1&__amp_source_origin=https%3A%2F%2Fwww.yugioh-world.com 403
(anonymous) @ v0.js:formatted:4456
Promise.then (async)
f.Eg @ v0.js:formatted:4449
Xg @ v0.js:formatted:4464
f.fetch @ v0.js:formatted:4486
push.f.l.L @ amp-form.js:809
$b @ amp-form.js:778
(anonymous) @ amp-form.js:574
Promise.then (async)
Pb @ amp-form.js:547
(anonymous) @ amp-form.js:428
Promise.then (async)
push.f.l.ea @ amp-form.js:304
tg @ v0.js:formatted:3996
f.execute @ v0.js:formatted:3905
aj @ v0.js:formatted:7425
v0.js:formatted:589 Form submission failed: Error: HTTP error 403???
at cb (https://cdn.ampproject.org/v0.js:23:169)
at $a.f.createError (https://cdn.ampproject.org/v0.js:19:36)
at https://cdn.ampproject.org/v0.js:166:409
at new Promise (<anonymous>)
at Vg (https://cdn.ampproject.org/v0.js:166:344)
at https://cdn.ampproject.org/v0.js:168:231
]]>
Hi,
Wondering if I can get some help, the plugin works great.. however I have a small “x” below the contact form in THE AMP pages.
Any ideas?
]]>It’s a good plugin, but don’t support special Mail Tags. I have a small business website and need to know from which page the form came from but that is not possible because special Mail Tags natively buit in cf7 dont work, also if I try to get The refferer info it comes as an empty response. Is it possible to solve this?
]]>Hi, We are getting the same error and have the latest plugin version installed.
Plugin version: Version 1.0.1
Warning: “The extension ‘amp-mustache’ is referenced at version ‘0.1’ which is a deprecated version. Please use a more recent version of this extension. This may become an error in the future.”
Once the form has been sent successfully, how can I redirect to the thank you page?
]]>It does not show recaptcha, please add support.
]]>Hi!
I ran into some issues with the plugin. I’m using:
Contact Form 7 Version 5.0.3
AMP Contact Form 7 Version 1.0.1
AMP Version 1.0-beta2
The contact form itself was submitting well, but the success and error messages weren’t showing up. So it appeared as if the form was broken without the feedback from the UI.
Here is what I ended up doing to fix the problem:
1) I noticed that my form action was different than the form action on the DEMO. It was action-xhr="/contact-us.html?_wp_amp_action_xhr_converted=1#wpcf7-f34893-p248-o1"
and was returning HTML instead of JSON. So I added the following function in my theme’s functions.php to change the form action to use admin-ajax:
/**
* alter contact form 7 to use admin-ajax
*/
add_filter('wpcf7_form_action_url', 'wpcf7_custom_form_action_url');
function wpcf7_custom_form_action_url(){
return '/wp-admin/admin-ajax.php?action=ampcf7_submit_form';
}
2) That fixed the action and I was getting back the response in JSON I was expecting but the form still wasn’t showing the messages. So I looked at the DEMO again, copied the necessary code and pasted it into the bottom of the form editor:
<div submitting="">
<template type="amp-mustache"></template>
</div>
<div submit-success="">
<template type="amp-mustache"><div class="ampcf7-success">{{msg}}</div>
</template>
</div>
<div submit-error="">
<template type="amp-mustache"><div class="ampcf7-error">
{{msg}}
{{#verifyErrors}}
<p>{{message}}</p>
{{/verifyErrors}}
</div>
</template>
</div>
I copied the styles from the inspect elements tab of my browser as well to get the correct styling.
Viola! It now works as expected.
Hope this helps someone else and/or the plugin author diagnose some issues.
EDIT: edited for formatting.
]]>Two days ago I installed your plugin and it seems to work great. Thank you!
But just minutes ago I got an e-mail from Google Search Console with an error message:
Voor de tag ‘FORM [method=POST]’ is vereist dat het JavaScript van de extensie ‘amp-form’ wordt opgenomen.
Voor het eerst gedetecteerd: 09-08-18
Status: Fout
translated in English:
The “FORM [method = POST]” tag requires that the JavaScript of the “amp-form” extension be included.
First detected: 09-08-18
Status: Error
Is this an error caused by the plugin?
]]>Why there is an extra field crated with name “Please leave this field empty.” on the AMP page?
]]>Hello @arshidkv12!
Thanks for the plugin.
As far as I can see, the plugin works only if the form is inserted into the content of the post or the page.
Is it possible to use this plugin with do_shortcode function?
]]>