Permanent inline checkboxes get wrong values when inlining other fields and won't update data

Permanent inline checkboxes get wrong values when inlining other fields and won't update data

DevelopersiagDevelopersiag Posts: 3Questions: 1Answers: 0

I'm using the code from https://editor.datatables.net/examples/api/checkbox.html

When I inline edit a different field from the same row as a checkbox, the onEdit data for the checkbox column has "Array(0)" instead of the 0 or 1 that it had previously.

Also, when using the same code I would like to set the data on the table but not submit it so I'm attempting to use
editor
.edit( $(this).closest('tr'), false )
.set( 'active', $(this).prop( 'checked' ) ? 1 : 0 )

but the data is not being updated, am I doing something wrong? I did make sure to switch 'active' for the name of my data field. One thing to note is my field name includes a dot, which I've made sure to escape.

This discussion has been closed.