Update Database value with checkbox group and Array

Hello everyone,

I created a form for changing values in the database via the Bootstrap 4 form generator and I have one field in the database that has a value of e.g. 1,2,4 or 2,4. I did a comma split and the edit form works, it loads good values for each checkbox.

My example is similar to “Dynamically Check Multiple Checkboxes” in the Wappler documentation.

The problem is that when i do Save, only the last value of the checkbox group is entered in the database, so if i selected the first and third checkboxes in the database it will enter only the value 3 (the values of the checkbox fields are first 1, second 2, third 3 and fourth 4) .

The problem is probably a string that i don’t send to the database after clicking save. Please help me how to solve the problem?

Community Page
Last updated: