$form->addElement('select', "email[$blockId][on_hold]", '', $holdOptions);
}
else {
- $form->addField("email[$blockId][on_hold]", array('entity' => 'email'));
+ $form->addField("email[$blockId][on_hold]", array('entity' => 'email', 'type' => 'advcheckbox'));
}
//Bulkmail checkbox
unset($props['text']);
return $this->addElement('checkbox', $name, $label, $text, $props);
+ //add support for 'Advcheckbox' field
+ case 'advcheckbox':
+ return $this->addElement('advcheckbox', $name, NULL);
+
case 'File':
// We should not build upload file in search mode.
if (isset($props['context']) && $props['context'] == 'search') {