Add this script before the wp_head():
<script type="text/javascript">
var wpcf7 = {"apiSettings": {"root":"https:\/\/www.website.com\/wp-json\/contact-form-7\/v1", "namespace":"contact-form-7\/v1"}, "recaptcha": {"message": {"empty":"Please specify...."}}};
</script>
Change http://www.website.com to your website URL
Thread Starter
fsace
(@fsace)
The scripts of the plugin was not working properly.
Place the variable declaration of _wpcf7 before the cf7 scripts.
I’m not sure why it suddenly did not work, but that is the fix we found.
Thread Starter
fsace
(@fsace)
additional settings option “demo_mode” works, but not “on_submit” and “on_sent_ok”