Best practice Dynamic Checkbox arrays per DB row or seperate DB rows?

Hi Freddy,
In order to store the checkboxes as new rows you need to:

  1. All of our checkbox names must be the same, followed by [] For example: name="mycheckbox[]" and add different values to them:

Screenshot_8

2, Import the form under globals, the checkboxes will appear as an array multiple in POST vars:

Screenshot_9

  1. Add repeat step, and repeat the POST var created by your checkboxes:

  1. Add the insert step there, inside the repeat, and as vallue select $value returned by your repeat:

When you submit your form, a new record will be created for each checkbox selected.

3 Likes