- Issue created by @jurgenhaas
- Merge request !111Issue #3507522 by jurgenhaas: Insert captcha widget even if placement is NULL → (Open) created by jurgenhaas
Marking as task since I can't decide if this is a bug report or a feature request.
My use case is that we have forms that get built by a form alter of a different module, in my case that's ECA. And because the form alter of ECA gets called later than the form alter of captcha, the form doesn't have any submit buttons yet and therefore captcha doesn't insert the widget.
However, the method $captchaService->insertCaptchaElement
is written in a way that the second argument for the placement can be NULL and the insertion still works.
Call the insert function even if placement is NULL.
Active
2.0
Code