Answer the question
In order to leave comments, you need to log in
Attaching captcha to custom page?
Hello everyone, I created a custom page where php code is displayed. I would like to attach a modular captcha to this form (the screenshot is attached), I tried to insert the form ID, but the captcha is not displayed.
What's in the code.
What's in the CAPTCHA module settings. Where the ID of the form fits, for which you need to check through the captcha.
Answer the question
In order to leave comments, you need to log in
If you are using the Captcha module ( /project/captcha
) and the latest version of Drupal 8, then the problem may not be in your code.
Check issues and/or drupal.org or stackoverflow forums - I read some time ago (unfortunately, I don't remember where exactly) that due to changes in recent kernel versions, the work of this module has been severely broken.
PS
In addition, if I'm not mistaken, it is possible that if your form createcer
is created by a function, for example, function create_cer_form()
then you must specify create_cer_form
(function name) in the captcha settings.
But I have been interested in this issue for a long time, so the assumption needs to be tested in practice.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question