Chekbox defaults seem to require both $field->value() and
$field->default() to be set.
LIKE THIS:
my $fk = $form->get_field($formKey);
$fk->default($measurementValue);
$fk->value($measurementValue);
The offending code appears to be in HTML::FormFu::Element::Checkbox at
line 57.
my $default = $self->default;
my $original = $self->value;
.
.
.
57| elsif ( defined $default && defined $original && $default eq
$original ) {
$render->{attributes}{checked} = 'checked';
}
Here you can see if looks for both $default and $original to be defined
even when the form has not been submitted. It should probably be
something like (defined $default || defined $original).