This repository has been archived by the owner on Apr 6, 2023. It is now read-only.
Input array question #395
Unanswered
Newton-Duarte
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, is it possible to have only one Input with an add button, and the value from that Input be inserted in an array using unform?
The examples of complex structures show how to do it with Scope and array index, but I don't want to have more than one Input for that specific case, can you guys help me out?
The idea here is: person object with firstName: string, lastName: string, colors: array, when the user clicks on add button (+) from color input, the value from that input needs to be inserted on the array from the unform object: { firstName: '', lastName: '', colors: [] }.
Beta Was this translation helpful? Give feedback.
All reactions