Hello everyone, I have developed a script that helps with the process of making the selects of the user profile fields dynamic.
Specifically, this script allows us to relate n number of municipalities to a department, which facilitates the quantification of the origin (place of residence) of the users who make use of our Moodle.
I would like to share it with the Moodle community, your feedback is very valuable and it is an opportunity to show my work.
The block was tested in Moodle 3.10.9, but is fully functional in other versions.
Here you can find the source code: https://github.com/natisbar/selectDynamic_Moodle_department-municipalities_ 😄
Video of its operation: https://www.loom.com/share/94586e44dc534516b568302d4edc359c