Hello, I am trying to keep an Input Text disabled until a certain value is selected in my multiselect.
in the example below, I want the otherinput text input element to be disabled if the value of other is present/selected.
$mform->addElement('select', 'multiselect', 'blah', array('option1','option2','option3', 'other')); $mform->getElement('multiselect')->setMultiple(true); //add text input ...
$mform->disabledIf('otherinput', 'multiselect', '!in', 3);
I've tried the condition the other way around that doesn't work. If the value 3 is in the multiselect, it should be disabled.