-
Improvement
-
Resolution: Done
-
Minor
-
None
-
Future Dev
-
3
-
Team Alpha - Sprint 1 I2-2025
This issue serves as a technical discovery to investigate the current capabilities of the Moodle Forms API and assess whether it supports the dynamic behavior required to implement optional placement configurations, as illustrated in the provided prototype.
Overview
The prototype demonstrates a form scenario where an autocomplete form element is used to select one or more placement types. Each selected placement type should dynamically reveal a corresponding configuration section on the form. These sections are initially hidden and should only become visible when their associated placement type is selected. When a placement type is deselected or removed, the related section should be hidden again.
This behavior partially mimics a tag-selection interface, where the autocomplete field supports multi-selection, however it also needs to dynamically control the visibility of specific form sections in real-time.
Scope
- Evaluate whether Moodle’s Forms API supports this functionality natively.
- Identify available API features (e.g., setting element dependencies, dependency conditions, etc.) that could be used to implement this behavior.
- If supported, document how to configure this functionality using built-in methods.
- If not supported, propose the necessary customizations, extensions, or alternative approaches.
- has to be done before
-
MDL-85359 Make placement configuration optional during LTI tool creation
-
- Open
-
- Testing discovered
-
MDL-85514 Forms hideIf/disabledIf 'in' rule not correctly implemented for multiselect/autocomplete
-
- Waiting for peer review
-
- will be (partly) resolved by
-
MDL-82996 Make hideIf() available for header element
-
- Waiting for peer review
-