We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
smallcontactform/components/SmallContactForm.php
Line 185 in f34934a
$validator->failed() will only be empty when no validation is used. When a form is valid this is returned:
Array ( [Your Name] => Array ( [Required] => Array ( ) ) [Your Email] => Array ( [Required] => Array ( ) ) )
In order to fix this you need to do something like foreach array[key]->Required if empty.
Or maybe I'm missing something?
The text was updated successfully, but these errors were encountered:
More info, when I disabled $validator->failed() it looks like the ajax has removed the content of your name and your email, maybe the issue is there.
Sorry, something went wrong.
No branches or pull requests
smallcontactform/components/SmallContactForm.php
Line 185 in f34934a
$validator->failed()
will only be empty when no validation is used. When a form is valid this is returned:
In order to fix this you need to do something like foreach array[key]->Required if empty.
Or maybe I'm missing something?
The text was updated successfully, but these errors were encountered: