validate aiowps-captcha-answer
-
Hi – i integrated the simple math equation (aiowps-captcha-answer) into jquery.validate.js:
var captcha = $(".aiowps-captcha-answer");
if(captcha.length !== 0) {
//changing input type to number for better validation
captcha.removeProp('type').prop('type', 'number');
captcha.rules( "add", {
required: true,
messages: {
required: "Ce champs est requis.",
number: "Chiffres seulment!"
}
});
} else {
console.log('no captcha');
}This works fine. But when i enter a wrong result, a new tab opens saying: ?Error: You entered an incorrect CAPTCHA answer, please go back and try again.? This is not very user friendly. Is there a way that this message can be integrated as error message just like the ones shown in code above? Regards Theo
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- You must be logged in to reply to this topic.