Using Conditional activities
Note: You are currently viewing documentation for Moodle 2.8. Up-to-date documentation for the latest stable version of Moodle may be available here: Using Conditional activities.
A basic example
Students are required to undertake 4 tasks in a precise order. According to their score in a quiz, the fourth task - a Moodle lesson - is either at a lower or more advanced level. They must
- view a page explaining the course
- post an introductory message in a forum
- take a quiz
- move onto a lesson tailored to their performance in the quiz.
Here is the teacher view.
Students will only see the first task (the webpage)with the second task (the forum) greyed out. The other tasks only appear once the conditions have been met. New in 2.8: the activities are displayed as links to make it easy for students to locate and complete them in order to move on.
How's it done?
- Task 1, the page must be read (or at least viewed) before students can access the forum. In task 1 the activity completion condition is set to require view
- Task 2, the forum, needs to have the restrictions set such that the page Read This First must be marked complete. The "open" eye icon means the forum is greyed out until available:
- Task 2, the forum, needs to require students to make a post before they can do the quiz. The activity completion condition is set to " require posts"
- Task 3, the quiz, needs to have the restrictions set such that the forum must be marked complete. The "crossed out eye" icon means the quiz is completely hidden until a student has posted in the forum:
- The student must get a grade in the quiz for the activity to be complete:
- Task 4 is two lessons - either at level 1 (basic) or level 2 (advanced). If the student scores less than 50% in the quiz they do Level 1; if they score more, they do Level 2. In the Level 1 lesson, the restriction is set such that students can only access it if they get under 50% in the quiz
The Level 2 lesson has the restriction set such that students can only access it if they get 50% or more:
An example of "all or any"
- It's possible to set conditions such that a particular activity is available if one or more previous activities are marked complete, rather than all of them. In this screenshot, the Advanced task will become available either if the student gets above a certain grade in the quiz or if they receive a grade in the assignment.
- When the first restriction is set, the teacher can then click the "Add restriction" button again to add a second (and subsequent) restrictions. The teacher can then change the "all" to "any" , thus changing the "and" to "or":
An example of a Restriction set
- The Restriction set button offers the possiblity of creating several criteria using all/any to create complex conditions. In the screenshot below, students can only access the Assessment and Feedback section of the course if they have EITHER completed the work on Monet OR if they completed all the work on Pissarro.
- The actual settings for this are as follows:
Tricks and techniques
With a bit of lateral thinking, you can achieve some interesting results beyond the most obvious uses of the system. Here is one example:
Imagine that you let students choose one of two projects. Each project has its own activities (a forum for all the people doing that project, resources with information about the project, etc). You want it to hide all the activities that a student isn't doing.
This can already be achieved in Moodle using the Groupings system. However, conditional activities gives another way to set this up which might be preferable in some cases. Here's how:
- Create two forums called 'Frog project sign-up forum' and 'Zombie project sign-up forum'.
- Set both forums to be automatically marked complete once the user makes 1 post.
- Set each forum to be conditionally available only if the other forum is NOT complete.
- Create other activities for the frog and zombie projects. For each Frog activity, set it to be conditionally available only if the Frog sign-up forum is marked complete. For each Zombie activity, set it to be conditionally available only if the Zombie sign-up forum is marked complete.
When a student first visits the site, they see the frog and zombie sign-up forums and none of the project activities. As soon as they post in one of the forums, the other forum will disappear, and all the activities for their preferred project will appear. (If they want to change their mind, they can delete their forum post so that it isn't marked complete any more, and it'll be back to square one.)
Many Moodlers are using Conditional activities as a means to "gamify" their course. This section is for sharing examples and ideas:
- Now you see it; now you don't - forum post
- What is Gamification and what is it in Moodle?- presentation by Gavin Henrick
- Gamify your Moodle courses in under 20 minutes (using Conditional activities and Badges) video on YouTube
Should you really use conditional activities?
Conditional activities are a way for you to force your students to do things in a certain order. Is that really what you want? The answer will depend on your particular circumstances, but it is worth taking a moment to reflect upon the degree to which conditional activities are appropriate for your course.It is certainly good course design to make it clear to your students what they are expected to do next, to give good guidance. Conditional activities can be used to create alternative pathways and to introduce repetition. As course sizes grow, such mechanisms can allow teachers to offer learning experiences that cater more to individuals, providing reinforcement when it is needed. However, some may still prefer to use labels and layout rather than locks and keys to direct the learning path.
- Forum thread Conditional by number of days for using post threshold blocking to restrict access to topics by days.