This is driving me nuts! I’ve gone through these forums and all the docs but I just can’t get this to work.
Here’s the scenario.
I have a table containing most of the data. I also have a many-to-many table for the airports. In the update form I have a Checkbox Group which is populated from a query of all the airports in the airports table. My Server Action has the main query and also a query for the airports.
I’ve followed all the docs and thought I had it working but it’s actually only ticking the first airport that’s in the query, not all of them.
Here is a snippet of code to hopefully show where I’m going wrong.
to the checkbox group. That’s why only one checkbox is checked. You need to pass an array with the values, so that all the checkboxes’ values which are returned by the query are checked.
I was having this same issue. I thought I had looked through all the posts but must have missed this one. I spent two days on this! Glad I found this post.