Hi there,
I have a CheckboxSetField that is populated with an array. The first item in the array is checked by default, but i dont want any items checked by default. Code looks like this:
public function LeakForm() {
$areas = array('Exterior','Water Meter (Moving)','Water Meter (Not Moving)','Roof Space','Family Bathroom','En-Suite
$form = Form::create(
$this,
"LeakForm",
FieldList::create(
CheckboxSetField::create("AreasTested", "Area Tested", $areas)
->defaultValue('No')
)........