In the course of doing a bit of refactoring of my qtype_regexp question type I have come across this problem.
$mform->addElement('header', 'showhidealternatetoto', get_string('showhidealternate', 'qtype_regexp')); $mform->addHelpButton('showhidealternatetoto', 'showhidealternate', 'qtype_regexp'); $mform->hideIf('showhidealternatetoto', 'generatealternate', 'neq', 1);
The hideIf function does not work. This problem may be related to MDL-68540, but that bug is marked as fixed. I have tried the workaround suggested by David Carillo here, but to no avail.
Is there actually a way to conditionally hide a 'header' element in a Moodle form? I can hideIf the contents of that header, but not the header itself.