I still haven't found a solution to this problem.
Here is the code where I make the form:
function definition(){
$mform=&$this->_form;
$arrgroup = array();
$arrgroup[] = $mform->createElement('hidden', 'user',$this->_customdata['viewuser']);
$arrayRecieved = $this->_customdata['dataArray'];
$countthis = 0;
foreach((array) $arrayRecieved as $datapoint){
$arrgroup[] = $mform->createElement('advcheckbox', 'delop'.$countthis, $arrayRecieved[$countthis]->id, "Outcome: ".$arrayRecieved[$countthis]->rownum.", Year: ".$arrayRecieved[$countthis]->year.", Grade: ".$arrayRecieved[$countthis]->grade);
$countthis++;
}
$arrgroup[] = $mform->createElement('submit','submit',"Delete Data Points");
$mform->addElement('group','coursegroup','Delete Data Points',$arrgroup,array(''),false);
$mform->setType('Delete Data',PARAM_INT);
}
It seems to work fine as it appears on the form fine:
Here is the code where I try to read it when it is submitted:
if($delete_form->get_data()){
print_object($delete_form->get_data());
}
The ticked or unticked advanced checkbox values aren't listed when I try printing out the returned data, only everything else in the form is returned.
I'm sure I'm probably doing something really simple wrong and I've tried different variations but still to no avail. Anyone able to see what I'm doing wrong?