What I need to do, is when the plus button is clicked I need the row with the Select Options etc, to be duplicated so another option can be added in underneath it.
Do any of you guys know the best way to do this in wappler ??
Obviously when the form goes to database I should be able to insert it with a repeat.
I’ve done this with with a select menu where the number of rows can be selected, but it could work in the same way with a variable etc. Eg put a repeat inside the form, eg: dmx-bind:repeat="select1.value.toNumber()"
… and add your form rows inside the repeat.
If you don’t want to display the input labels on every row: dmx-show="$index == 0"
As i explained, create a repeat children region, use a variable as an expression for it. Set a default value of 1 for your expression
Update the variable value when clicking the + button.