-
Improvement
-
Resolution: Fixed
-
Minor
-
3.0.3, 3.4
-
MOODLE_30_STABLE, MOODLE_34_STABLE
-
MOODLE_34_STABLE
-
MDL-53848_form_hideif -
Hi there,
this ticket is close to the tickets MDL-49363 and MDL-52167 but not only requested for the adminlib but for the formslib.
With this issue I would like to enhance the user experience and the usability.
At the moment, activity / resource settings can be grouped to different sections. For example in the assignment there are settings relating to Feedback types, Submission settings, Group submission settings and so on.
Within those settings it's only possible to disable elements if a value of another specified element is chosen. But this element is still visible to the user. If a user cannot make a choice because of a disabled option, is this item important for him? Does he need to see all the elements he cannot change? Would it not be more user friendly if he just get to see the items that are important for him depending to his selection?
Let me give you a short example of the group submission settings of the assignment activity:
If a user decides that his participants should submit all for themselves, he chooses 'No' at the item 'Student submit in groups'. That's all he need to do and know in this case:
Does he need to read through all the settings that can be set when group submission is enabled? I don't think so.
The UI - only in this case - should present all the possible settings related to group submission mode:
Futhermore, in our Moodle we have the situation that we admins locked the setting 'Require group to make submission'. So the option is locked and definitely disabled, however it's not visible via the mouse over effect as it is with the disabled if option and it does not change whether yes or no is chosen in 'Student submit in groups', So the dependency to the selection of the element ahead is not clear.
It would be much clearer if just the form elements that are needed are also presented to the user.
I propose for implementing a kind of hiddenif function to make a whole form element including its label invisible dependent on another element.
Here's also a question for such a function in the forum:
https://moodle.org/mod/forum/discuss.php?d=71658
Cheers,
Kathrin
- caused a regression
-
MDL-60012 Regression in formslib: "neq" condition no longer working on radio buttons.
- Closed
-
MDL-60205 Regression in formslib: hideIf on an element inside a group hides the whole group (Clean only)
- Closed
-
MDL-62013 Labels are not visible after hideIf conditions are not satisfied in theme_clean
- Closed
- has a non-specific relationship to
-
MDL-48827 Possible to change the date in date_selector even when it is greyed out as a result of disabledIf
- Closed
-
MDL-63243 LTI modedit.php should not display 'disabled' form elements
- Closed
- has been marked as being related by
-
MDL-61014 Use hideIf in core forms
- Closed