Closed behoof closed 1 year ago
Hi @behoof ,
I created a {courseunenrolurl} tag for you.
Just add the tag as a link in a course page. When the user clicks the link, it will unenroll them from the current course that they are viewing.
If you want to turn it into a button, you can use the following combination of FilterCodes tags:
{button {courseunenrolurl}}Unenrol me from this course{/button}
The result will be something like this:
IMPORTANT: The link will only work if the learner has the ability to unenroll themselves from the course. For more information on that, see: https://docs.moodle.org/en/Enrolment_FAQ#How_do_I_enable_students_to_unenrol_themselves_from_courses.3F
Please note that this new feature is only available here on GitHub. I would appreciate it if you would be so kind as to take a few minutes to try it out and let me know if it works for you. This new feature will be included in the next official release on Moodle.org within the next few days.
Best regards,
Michael Milette
This tag is now also available on Moodle.org. Thanks again for your suggestion!
Prerequisites
Feature Request - The User Story
The unenroll link in Moodle is hidden and many users can't find it easily. I would like to have a filtercode for unenrol.
Screenshots / Mock-ups
No response
Alterative you have considered
No response
Additional information
No response
Planning on submitting a solution in a pull request (PR)?
No
Code of Conduct