## General developer forum

### Disable checkbox is value is selected in Multiselect.

Disable checkbox is value is selected in Multiselect.

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);

\$mform->disabledIf('otherinput', 'multiselect[]', '!in', 3);