-
Improvement
-
Resolution: Unresolved
-
Minor
-
2.3
-
MOODLE_23_STABLE
On the quiz editing form, we would ideally disable the 'When time expires' option if (time limit == 0) AND (close date == 0).
Sadly, the only type of code that is possible (without writing custom JavaScript) is
$mform->disabledIf('overduehandling', 'timelimit', 'eq', 0);
|
$mform->disabledIf('overduehandling', 'timeclose', 'eq', 0);
|
Which will disable 'overduehandling' if either condition is true.
It would be nice to support the AND option, but there is not an obvious simple API design.
- has been marked as being related by
-
MDL-82294 Migrate forms YUI to ECMAScript
-
- Waiting for integration review
-