How would I duplicate a row with inputs in them?

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.

Screen Shot 2020-04-17 at 12.28.49

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"

Your repeat region can use a variable as an expression instead of an input.
On clicking (+) just update the variable value with +1.

This is what I want to achieve @Teodor
So when the + button is pressed it duplicates the inputs (as per the picture)

doubleadd

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.

Ah ha, after a beer I now get what your saying :slight_smile: