$form = Fieldset::factory('form_example')->add_model('Model_Mexamples', $example_id, 'set_form_fields_example');
...
if ($form->validation()->run() == TRUE)
...
public static function set_form_fields_example(Fieldset $form, $example_id = null)
{
...
// Checkboxes
$form->add('checkbox_id',
'Checkbox Test',
array(
'type' => 'checkbox',
'options' => self::get_checkbox_options(),
'id' => 'checkbox-test',
'class' => 'checkbox-vertical',
'title' => 'Select a checkbox widget',
'value' => empty($examples) ? '' : $examples['checkbox_ids'],
),
array(
array('required'),
)
);
...
}
It looks like you're new here. If you want to get involved, click one of these buttons!