1

I'd like to change how the error message is when a user fails the recpatcha.

Currently it is just plain text on top of my form but I would rather have it be a modal or at least be in red.

I looked into the templates folder in both the Captcha module and ReCaptcha but did not see anything for the error message.

Is there a way to theme the error message?

1 Answer 1

2

Believe I found a solution.

Since I am using the captcha with Webforms I inserted the below JS to the form and it seems to be working without any drawbacks.

(function ($, Drupal) {
Drupal.behaviors.myModuleBehavior = {
attach: function (context, settings) {
$( "[role=alert]" ).dialog();
}
};
})(jQuery, Drupal);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.