Another easy method to reduce spam is to rename the form action in the output (functions php) and add an onfocus() and onmouseover() to the enfold number-captcha field.
ob_start();
add_action(‘shutdown’, function () {
$html = ob_get_clean();
$html = str_replace(‘action=”/kontaktform/”‘,’action=”/formerror/”‘,$html);
$html = str_replace(‘”text_input captcha”‘,'”text_input captcha” onfocus=”changeaction();” onmouseover=”changeaction();”‘,$html);
echo $html;
}, 0);
And a little piece of Javascript – the id of my form is kontakt.
function changeaction() {
document.getElementById(“kontakt”).action=”kontaktform/”;
}