## General developer forum

Hi

This is my code,

$checkboxarr = array();$checkboxarr[]=$mform->createElement('checkbox','c','',);$checkboxarr[]=$mform->createElement('checkbox','cpp','',);$checkboxarr[]=$mform->createElement('checkbox','java','',);$mform->addGroup($checkboxarr,'lang','Choose the language',array(''),false);$mform->addGroupRule('lang', \$checkboxarr,null,null,'client');

I used addGroupRule but it didn't work out.

Now I need to do the validation, at least any one of the checkboxes should be checked.

I searched in the forum, I didn't get any solution.

Help me with this. Correct me if I am doing anything wrong.

Thanks in Regards.

Average of ratings: -