-
Notifications
You must be signed in to change notification settings - Fork 772
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
Validation with v::when not working #1470
Comments
when using nested conditions you're basically passing the previously checked value to the nested rules.
|
Thank you for your suggestion, too bad i get the same with this:
In this case radiobutton equals textblok1, so textblok1 field should not be empty. And its not in our case. |
Please read my comment thoroughly.
Of course, you should add extra rules like first validating that "postData" is an array etc etc |
Ah i thought i could do the v::when in a v::key so i could add rules based on the v::when. Textbox rule (if radiobutton = textblok1) then notEmpty else alwaysValid. I will check ik out, thanks for your help |
I have the following code:
$this->postData contains the following array:
But i get the following error:
Array ( [textblok1] => "test" is not valid )
What am i doing wrong?
Thanks in advance!
Wouter
The text was updated successfully, but these errors were encountered: