Skip to content

Unchecked checkboxes should return null and not false as their value #465

@erdi

Description

@erdi

This issue is about reverting changes added to fix #156. The rationale there is that false can be used to uncheck a checkbox but one can also use null as the value when unchecking a checkbox and the manual suggests to use groovy truth when checking if a checkbox is checked.

This special case of returning false for unchecked checkboxes means that they behave inconsistently in other parts of the API, namely when obtaining value of multiple checkboxes using form control shortcuts.

Note that this is breaking change and can only be introduced in the next major version.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions