Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter cmrdk7

    (@cmrdk7)

    I 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

    you 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;}
    });
    
    Thread Starter cmrdk7

    (@cmrdk7)

    One 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

    Thread Starter cmrdk7

    (@cmrdk7)

    I 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

    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>

    • This reply was modified 3 years, 3 months ago by cmrdk7.
    • This reply was modified 3 years, 3 months ago by cmrdk7.
    • This reply was modified 3 years, 3 months ago by cmrdk7.
Viewing 5 replies - 1 through 5 (of 5 total)