Dynamically adding rows/columns to repeated groups

Hello all,
I’ve been stuck on figuring out how to create a way to add or delete rows from the repeated group. I’m using the repeated groups to hold inputs and drop downs like spreadsheet, but I need a way to add a new row or delete an extra row with a button or an icon.

Currently I have a fixed number of rows, but I can’t figure out a way to allow the repeated group to take a variable and take that number as the number of rows.
I’m not sure if I’m just thinking about this the wrong way or if I’m just missing something that allows me to change the number of rows dynamically.

You can do it in many ways.

Create a master group, inside it makes you RG and also a group as a row or just a button. make them colum. now when you click that button just create and on think of the RG content type.

did you try it.

I’m not quite sure if I’m understanding what you mean here. Are you suggesting, in a regular Group container element, I add a Repeating Group (RG) with another Group or add a button? I’m assuming the latter and you mean in a group, have an RG with just rows or columns and have a button on the side next to the RG to add/delete the rows. I do have something like this already, but I don’t understand how I can make the button change the amount of rows (I’ll just stick to rows for now) of the RG. Is there a way to find the variable RG uses like when it’s a fixed number of rows or do I have to make the RG not have fixed number of rows for this to work?

I’m just solely confused on how to edit this number of rows in a reactive way by either using a button or a similar method.

This topic was automatically closed after 70 days. New replies are no longer allowed.