Hi, I'm very new to Wix code and I'd like to create a set of input fields dynamically by a button action, something like below:
Each time a user clicks Add button, this group of fields appear and name its individual input field by order. Next time user clicks Add button, each individual field in group 2 has like name2, dob2, and so on.
I think I can make the group of input fields appear when Add is clicked, however, how can I name each field or next group of input fields according to its created order? #input1, #input2, #input3...
Can someone kindly guide me as specific as possible?
Thanks in advance
See Yisrael's post about it here.
https://www.wix.com/corvid/forum/corvid-tips-and-updates/example-input-repeaters
Been out since January 😉
The need for explanations remains. I am also interested in the show/hide or repeater method that Shay suggested. Thanks in advance!
Is it by any chance became possible?
Hi Shay -- Is it possible for you elaborate on how to use the show/hide methods to dynamically add input fields?
Thanks!
At this point you can only use the show/hide methods to achieve it. You can set a dedicated ID in the form #input1_1 #input1_2 where 1 is the row and 1,2 are the location in a row.
A better solution would be with having input parameters in a repeater element. It is not possible at the moment but using input elements in the a repeater is on our list.