Add a check box to self-enrolment procedure

Add a check box to self-enrolment procedure

by Jason De Donno -
Number of replies: 4

Hi

I want to add a license agreement to a course, which users will agree to be checking a check box. This needs to be part of the course self-enrolment procedure. What is the base way to add this?

 

Moodle 2.2.2

 

Average of ratings: -
In reply to Jason De Donno

Re: Add a check box to self-enrolment procedure

by Jason De Donno -

Perhaps it would be better to add a custom field new account form, where new users register. It possible to add a field there?

In reply to Jason De Donno

Re: Add a check box to self-enrolment procedure

by Diane Villemure -

One option is to create a html document of the license agreement and upload it where the public has access. Insert the URL of the document in the Site policy URL field (Site administration -> Security -> Site Policies). That way a "I understand and agree" checkbox will automatically appear on the email-based self-enrolment form.

In reply to Jason De Donno

Re: Add a check box to self-enrolment procedure

by Olja Petrovic -

I don't think you can do that by simply configuring the self enrol plugin.

If this is very important to you and you are ok with writing code for Moodle, and maintaining it at upgrades, you can try creating an enrolment plugin which extends the self plugin. I have never extended an existing enrol plugin. BTW I recommend not modifying the core code directly unless it absolutely can't be avoided.

Or you can do as suggested and add the condition at registration.

Or you could add some kind of course activity in each course, like a choice type activity containing a description and a link to the policy and make other resources available only if that one completed.

http://docs.moodle.org/23/en/Choice_module

But the official Moodle way for agreeing to policies is at registration.

I'm curious to hear if there are other ideas.

A specific course-license module would be interesting, with different kinds of licenses to chose from for each course. Maybe it exists.

I'm curious about other suggestions that come up.

Good luck.

In reply to Olja Petrovic

Re: Add a check box to self-enrolment procedure

by Jason De Donno -

OK, thank you. I think I will avoid changing any code. Doing it at registration will be fine. Thanks for the help.