Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Displaying error in invisible version #55

Open
Malin88 opened this issue Mar 31, 2021 · 0 comments
Open

Displaying error in invisible version #55

Malin88 opened this issue Mar 31, 2021 · 0 comments

Comments

@Malin88
Copy link

Malin88 commented Mar 31, 2021

Hi,
When I display an error of a certain form field, I do sth like this $form['field_name']->error because I don't like displaying all errors at the top of the form as a list. So, I also want to display the error only for invisible recaptcha field. The error message is in global form errors array $form->errors but the array of errors for specific recaptcha field $form['recaptcha']->errors is empty. After debugging I know it is because InvisibleReCaptchaField extends for HiddenField.
Is there a way to get the error just for recaptcha?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant