I have created a form that used an 'autocomplete' element, and I want to disable this select box if a checkbox found in the form is not checked. I have followed the 'disabledIf' documentation in the formslib API, but I cannot get things to work. Here is what I have so far:
$mform->addElement('autocomplete', 'weekdays', get_string('repeatevery', 'local_hwk'), $weekdays, $options);The 'availablefromenabled' is a checkbox, and I am able to get other elements on the form to be disabled based on that checkbox. I am developing for Moodle 3.3. Has anyone been able to disable this particular type of element?
$mform->addHelpButton('weekdays', 'repeatevery', 'local_hwk');