I use a library which constructs a Javascript object from a form's elements : $("#frm").serializeJSON()
Here is the website of the library.
So at runtime when a checkbox is not checked then it does not appear inside the Javascript object constructed from $("#frm").serializeJSON(). Although I set a name attribute to the checkbox element. So why ?
You should provide
checkboxUncheckedValueproperty with suitable value for your case.For example
Check the doc for more details https://github.com/marioizquierdo/jquery.serializeJSON?tab=readme-ov-file#include-unchecked-checkboxes