Dynamic Table Value to Array

Hello all,

So I have a form that contains a Bootstrap 5 responsive table that is populated with records from a custom db query. Each record in the table has a unique id (along with a bunch of other columns). In addition, the first column of the table contains a check box.

So it is a table of records and the user filling out the form can check which ones that want.

What I am trying to do is save the id’s from each checked record into an array so I can use them in future actions. So the result of the from should have all the data the user input, along with an array of selections from the table.

Any suggestions would be highly appreciated.

The checkbox field should have the same name across all iterations e.g. _arr and a dynamic value (dmx-bind:value=“unique_id_field_name”

When you post the value via a form, you have an iteratlble_array

1 Like