Skip to content

Checkbox checked value not being set #13

Description

@dfreerksen

If I have a checkbox on the page and I check it and then hit submit on the form, if the form returns with validation errors, the checkbox is no longer checked.

Also if I have a form where I set the checkbox to checked, it will not check the checkbox when it is rendered on the page. The code I am using is
$form->add_checkbox ('permissions['.$permission['id'].']', $permission['label'], $permission['id'], 'trim', TRUE);

Am I doing something wrong with either of these issues?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions