Hi.
I’m trying to use addElementToEditGroup
to add a multiple checkbox to a form.
Here’s the code I’m using:
$form->addElementToEditGroup(
'multicheckbox',
'recipients',
array(
'id' => 'email_users-recipients',
'value_options' => array(
'0' => 'Apple',
'1' => 'Orange',
'2' => 'Lemon'
),
'label' => __('Recipients'),
'description' => __('The email recipients.')
)
);
For some reason, I get an error:
Zend_Loader_PluginLoader_Exception
Plugin by name 'Multicheckbox' was not found in the registry; used paths:
Omeka_Form_Element_: Omeka/Form/Element/
Zend_Form_Element_: Zend/Form/Element/
If I try any other control name (text, checkbox, etc.), it works fine; and multicheckbox seems to be a valid element name.
So, any idea about what I’m doing wrong here?
Thanks.