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
Using multiple when conditions #1376
Comments
Well it's a circular dependency so obviously it won't work, but I don't think you need it to be circular since |
sorry let me clarify, The first validation should require there be a selection of the four options available. If and only if the fourth option "other" is selected, should it trigger the second validation on If I remove the first |
Still doesn't make a difference to me, |
Inactive, reopen if it's still an issue. |
Hi everyone, I have the same issue when I'm trying to validate dates depending on each others, here my code:
error: item added into group startDate created a dependencies error Do you guys have any ideas to solve this problem? |
See release notes for v16. |
Context
What are you trying to achieve or the steps to reproduce ?
I've got a radio button group that needs a two part validation schema with both parts conditionally required based off of each other's values. If a user selects the last option 'other', an input field will appear for them to manually enter another number
The first validation should, require there be a selection of the first three if the fourth option is not selected.
The second validation should be, if the selection value is 'other', ignore the input mask and require the input be filled with a 10 digit phone number.
Which result you had ?
Error: item added into group otherPreferredCardNumber created a dependencies error(otherPreferredCardNumber)
What did you expect ?
The first validation should, require there be a selection of the first three if the fourth option is not selected.
The second validation should be, if the selection value is 'other', ignore the input mask and require the input be filled with a 10 digit phone number.
The text was updated successfully, but these errors were encountered: