Skip to content

Checkbox field does not allow defining a value without being checked #6712

@mepsteinj

Description

@mepsteinj

Steps to reproduce the issue

1- Create a checkbox field with type="checkbox"
2- Set the default value, for example: default="somevalue"

Expected result

Checkbox field NOT checked with value="somevalue"

Actual result

Checkbox field checked with value="somevalue"

System information (as much as possible)

Joomla 3.4.1

Additional comments

The value setting defines what will be submitted if checked. If "default" attribute is not defined, the default value is "1".

Currently, the only way to replace the "1" value is setting the "default" attribute, and if you do that, the field changes its state to checked.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions