Hi
I have created a form using the form module. This contains a Checkbox group I am now trying to extract the values from each of the check boxes in that group. Can anyone point me in the direction of a tutorial or example or explain how I could do this?
For information, I am doing this in the forms controller class, within the process function. I normally get the values out of fields by doing the following:
function process($data, $form) {
$this->weekType = $data["EditableDropdown42"];
// Run through form to get the job type
foreach ($this->Fields() as $field) {
switch ($field->Name) {
case "EditableDropdown3":
$this->runJob($data[$field->Name]);
break;
}
}
Can anyone help please?
Thanks in advance, Sean