stickgrinder/fluentform — Issue #13: Checkbox checked value not being set
Author: dfreerksen
Created: 2011-11-02 18:10:31+00:00
State: open

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?