Moodle forms | disabledIf not working for html editor

Moodle forms | disabledIf not working for html editor

by David North -
Number of replies: 1

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?

Average of ratings: -