• Resolved Korveld

    (@teidar)


    Have problem when there are two forms on the same page. Works fine on second form but there is no turnstille on first one. Have an error in console that says “Uncaught SyntaxError: Invalid or unexpected token”. I’m using Contact form 7 if it’s matters
    What can i do with this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Korveld

    (@teidar)

    I found problem in the simple-cloudflare-turnstile.php file. When i remove this line of code?add_action("cfturnstile_after_field", "cfturnstile_force_render", 10, 1);?all works fine. So problem somewhere in the?cfturnstile_force_render?function i guess

    Thread Starter Korveld

    (@teidar)

    It’s working only on my local website setup. doesn’t works on production server

    Thread Starter Korveld

    (@teidar)

    ok. I removed e.innerHTML.length<=1&& from cfturnstile_force_render function so it looks like this now (sorry don’t know how write code in this textarea)

    https://monosnap.com/file/EJyVXbxVzu8k3lXyU2ctdC8hsbY2Yj

    now it works fine.

    you should look at this part, it’s something wrong with it e.innerHTML.length<=1&&

    • This reply was modified 2 years, 1 month ago by Korveld.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problem when there are two forms on the same page’ is closed to new replies.