Skip to content

Fix unchecked checkboxes not being submitted#71

Open
markom-werbeagentur wants to merge 1 commit intocontao-bootstrap:masterfrom
markom-werbeagentur:fix/checkbox-empty-value
Open

Fix unchecked checkboxes not being submitted#71
markom-werbeagentur wants to merge 1 commit intocontao-bootstrap:masterfrom
markom-werbeagentur:fix/checkbox-empty-value

Conversation

@markom-werbeagentur
Copy link

An unchecked checkbox will not be submitted to the server. This may lead to unexpected behavior. An empty string should be submitted instead, to represent the empty value.

Solution:
Add an empty hidden field above the checkbox, like Contao core and Form Designer do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant