There is a simple add-on you can use.
If you are counting the number of checkboxes that go down, limit it to, let's say, 10.
So you will have (again just an example) 30 checkboxes, 10 in each row.
Let's say the number of checkboxes are represented by the variable $amount.
if($amount = 10 || $amount = 20){
// HTML for new column here
}
Therefore, when the check box reaches 10, it will create a new row, making a total of two rows. And it will also trigger when it reaches 20, creating the third row.
Good Luck!
If you need further assistance/advice about understanding what I am talking about, feel free to contact me.
If you are counting the number of checkboxes that go down, limit it to, let's say, 10.
So you will have (again just an example) 30 checkboxes, 10 in each row.
Let's say the number of checkboxes are represented by the variable $amount.
if($amount = 10 || $amount = 20){
// HTML for new column here
}
Therefore, when the check box reaches 10, it will create a new row, making a total of two rows. And it will also trigger when it reaches 20, creating the third row.
Good Luck!
If you need further assistance/advice about understanding what I am talking about, feel free to contact me.