Group Fields
#4502
Replies: 1 comment
-
That's a nice idea, although having it as a I will see what I can do, I converted this to an issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Unless I'm missing something, right now it is not possible not make a group of fields that are nested under a parent name. Take this
useFieldArray()
example:Each field has to be prefixed with
accounts[${idx}]
this is very verbose when using many fields (per account in this example), and because the name now includes the path, it will also show up in the error messagesaccounts[0].firstName is not valid
.It would be great if I could write something like this:
And at the same time it would be great if any validation errors on grouped or array fields would only display the actuale field name, not the full path. And each group could also have information about the validity of it's children (which seems to be a wanted feature, see discussions #4179, #3828)
FormKit has a similar concept with Group Inputs and List Inputs.
Beta Was this translation helpful? Give feedback.
All reactions