id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
456	Checkbox-control value not consistent	sdm	mpo	"My fconf contains the following boolean-field:

{{{
""wildcard"": {
    ""base"": ""boolean""
}
}}}

After my form is created, I examine the value of this field:

{{{
myForm.getChild(""wildcard"").getValue();
}}}

- Initially, this value is false.
- But if I then check and uncheck the checkbox, and I look at the value again, the value becomes Boolean{} (this Boolean-object does contain the correct value false).

It seems strange to me that the value is initially a boolean, but after the value is changed, the value becomes a Boolean-object.

I looked into the code and noticed the following:

- The CheckboxControl.normaliseValue-method checks if the value constructor is Boolean and then returns a Boolean, otherwise it returns !!value, which is a regular boolean.
- The CheckboxControl.initElements-method sets the value to false, but the Control.reset-method calls setWirevalue() of initial.value, and this is undefined instead of false (maybe this is correct, but it seemed a bit strange to me because the value was set to false in the initElements-method)
"	enhancement	new	minor	0.4	modules/kauri-forms				
