-
Bug
-
Resolution: Fixed
-
Minor
-
3.4
-
MOODLE_34_STABLE
-
MOODLE_34_STABLE
-
MDL-60205_group_hiding_clean -
Here is a simple group in a form where second element (text input) is hidden unless the first element (checkbox) is checked:
$group = [
|
$mform->createElement('advcheckbox', 'commnewsnewemail', 'Email', ''),
|
$mform->createElement('text', 'commnewsemail', get_string('email'))
|
];
|
$mform->addElement('group', 'commnewsgroup', 'Receive communication email', $group, '', false);
|
$mform->hideIf('commnewsemail', 'commnewsnewemail', 'notchecked');
|
$mform->setType('commnewsemail', PARAM_EMAIL);
|
This works perfectly in Boost but in Clean the whole group is hidden.
Copy attached file test60205.php to your wwwroot and open in the browser to test
- blocks
-
MDL-60108 Simplify moodle.net registration form, add new mailing list, show during installation
- Closed
- is a regression caused by
-
MDL-53848 Formslib - add function to $mform that makes it possible to hide form elements dependent on selected values
- Closed
- is blocked by
-
MDL-60012 Regression in formslib: "neq" condition no longer working on radio buttons.
- Closed