Yep, this is a repeating group of content type “text”.
In the RG there are 3 elements that are not visible on page load.
When some of these buttons are clicked - I make a :plus item
to a custom state (type “list of text”) and the text instance that is added to the custom state is using the following mask id|||type
, where:
id
is a row number (current cell’s index in my quick example. Not a good solution cause when you will delete some row - indexes will be recalculated and inputs will be reset. It’s better to calculate a number and make +1 for each new row).type
is one of the following input forms:- input
- multiline
- checkbox
So, for example, when “add input” is clicked and RG has now rows - text instance will look like 0|||input
.
Each input form has a conditional expression. For example, for input element: “when Current cell's text :split by(|||) :item #2 is "input"
- make it visible”.