I would like to click on a button that keeps adding rows until the table has 20 Rows for example.
Use Case:
I have a button that has a badge that displays how many days don’t have their own rows.
I would like that button to add the remaining number of rows (7) so that there is a row for each day up to Today().
Therefore this button should run the AddRow() action until there are no more days/rows left to add.
This button currently adds only 1 new row.
How do I make him repeat himself up until there are 20 rows in the table, and then make him stop so that it doesn’t go beyond 20?
I suppose this should function a lot like an automation rule: When: Button is clicked
under Condition: The table has less than 20 rows Action: Add new row
No, as I said you have to use ForEach function.
The first argument of this function will be the range of action. In your case you can with Sequence() function to get from 1 to 20. But the if won’t make several action, for that as U said you walk to use ForEach and eventually run action
If nobody gives you an answer in detail, I will as soon as I get a computer access
But I’m sure there are plenty of example in the forum about that