For custom checkbox field “Bonus”
why is the value attribute of html element always set to “true”, whether is it selected(checked), or not selected(unchecked). Shouldnt it be “false” when unchecked(deselected)?
when not selected(default value is “true”, which i think should be “false” by default)
You are looking at the HTML. If this value is not set to true then the Bonus check box will not appear on the screen. Checking or unchecking is not part of this but part of the submission process.
Unlike other input controls, a checkbox’s value is only included in the submitted data if the checkbox is currently checked. If it is, then the value of the checkbox’s value attribute is reported as the input’s value, or on if no value is set.