This works great and any checkbox clicked gets added as a comma separated value in the output, however I do not recall having to add a repeat children inside the checkbox group component, instead I used to add a repeat to the checkbox group itself I think.
Who knows maybe I am just confused, @Teodor have I done this correctly as Wappler intended?
I think what may have caused my confusion is that in the UI itself, the only component it allows me to add inside a checkbox group is a checkbox itself.
Maybe that can be looked at to allow adding a checkbox, checkbox control, as well as a repeat children component.
But I wasn’t getting the comma separation. So I looked at your lines
<input class="form-check-input" dmx-bind:id="name ? name : internalName" type="checkbox" name="cb_group_booking_provider_company_products" dmx-bind:value="name ? name : internalName"> {{name ? name : internalName}}</label>
What would my values be here? I didn’t understand your syntax and so substituted my query values incorrectly.
Thank you for hopefully explaining this!
dmx-bind:value="name ? name : internalName"> {{name ? name : internalName}}
That part, was pretty specific to my exact needs, so not sure you would actually need to use it like I did.
In my situation I was using 3 different API datasources, from 3 totally different companies, and although each of those API providers was giving similar data, their naming conventions were slightly different.
2 API sources were providing a name and the other was also providing a name but had it referenced as internalName
All I was doing was saying if the API source had a name, then use it, otherwise if it could not find a name then look for something called internalName, its just a standard ternary operator.
To get the comma separated list of the values you must have the checkbox group, with the repeat inside the checkbox group, and you must choose the binding correctly.
Take an example of a form with a $_POST variable as the forms checkbox group of group_cb_assoziierte_gefuehl, that would hold the entire array of values, so to test, in your server action, make a repeat step, with the expression of $_POST.group_cb_assoziierte_gefuehl.split(',') then inside the repeat add a setValue step with the value set to $value and run the action, you should be returned every checked checkbox.