cmrdk7
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] Can’t submit form – reCAPTCHA not workingI was able to solve it – it was a really stupid error. Someone from my company created a redirect for /contact , this affected the /contact-form directory as well. Our WP adress and Site adress are different, I was only able to see the error message when I ran it on the same adress
Forum: Plugins
In reply to: [Contact Form 7] Only corporate emails validation for Contact Form 7you could try
let provider = ["gmail","hotmail","yahoo"]; let mail = document.getElementById("email_field"); let btn = document.getElementsByClassName("send_btn")[0]; provider.forEach(e =>{ if(mail.value.includes(e)){ console.log("true"); btn.disabled=true;} });Forum: Plugins
In reply to: [Contact Form 7] Can’t submit form – reCAPTCHA not workingOne thing that may work is to downgrade from reCAPTCHA v3 to v2, but that’s not optimal (worse UX) and a workaround is needed since v2 is no longer supported by cf7
Forum: Plugins
In reply to: [Contact Form 7] Can’t submit form – reCAPTCHA not workingI use the avada theme and the following plugins:
- Application Passwords
- Avada Builder & Core
- CF7 Multilingual
- CF Entries
- Integration for Contact Form 7 and Salesforce
- GDPR Cookie Consent
- Cool Timeline
- Distributor
- Insert PHP Code Snippet
- OptinMonster
- Smush Pro
- SVG Support
- WP Mail SMTP
- WPML Media, Multilingual CMS & String Translation
- WPMU DEV Dashboard
- Yoast SEO
Forum: Plugins
In reply to: [Contact Form 7] Country code in CF7?idk how ip2location-tags works, but if I tried to solve this I would first try adding this below [hidden text country_code “country_code”]
<script type="text/javascript">
var cc = {ip:country_code};
document.getElementsByName("country_code")[0].value = cc;
</script>If this doesn’t work try adding this instead
<script type="text/javascript"><p id="countryCode" style="display:none">{ip:country_code}</p>
<script type="text/javascript">
var cc = document.getElementById("countryCode")[0].value;
document.getElementsByName("country_code")[0].value = cc;
</script>