Hi,
i found the following code from moodle form API to create checkbox. but it gives only one checkbox. I want to add three check box
$mform->addElement('advcheckbox', 'ratingtime', get_string('ratingtime', 'forum'), 'Label displayed after checkbox', array('group' => 1), array(0, 1));