I am making a form with moodle quick forms.
I have this:
$mform->addElement('editor', 'body', 'Body'); $mform->setType('body', PARAM_RAW); $mform->disabledIf('body', 'communicationtype', 'eq', 'Segment');
The disbaledIf doesn't seem to work for the editor. I use the same disabledIf logic on other elements such as textarea and selects and it works as expected.
I can't seem to find anything online that explains why this is happening. Does anyone know how I can get the disbaledIf to work on the editor?