-
I have a dynamic form where the user can submit one field or dynamically create more. How would I validate a field that is either a string or an array? Should I simply check the type of field and call a separate validator for each case? |
Beta Was this translation helpful? Give feedback.
Answered by
WeyIin
Jun 14, 2022
Replies: 1 comment 3 replies
-
What I would do is maybe iterate through the array and call the validator on that field with existing one.. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
galaczi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What I would do is maybe iterate through the array and call the validator on that field with existing one..