Note: You are currently viewing documentation for Moodle 2.4. Up-to-date documentation for the latest stable version of Moodle may be available here: Conditional activities settings.

Conditional activities settings: Difference between revisions

From MoodleDocs
(→‎Restricting access: clarification on when access is prevented)
 
(14 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Conditional activities}}
{{Conditional activities}}
==Enabling the use of conditional activities==
==Enabling the use of conditional activities==
[[Image:Conditional activities settings.png|thumb|Teacher view of an activity setting for: Restrict availability and activity completion]]
After conditional activities has been enabled on the site, a Restrict availability section will appear for teachers on the edit activity page.


The basic conditional setting is in the '''Restrict availability''' area of an activity setting. It is asking for the conditions when the activity should be visible. This can be based upon dates, and/or score ranges of other activities and/or if other activities are considered completed (see [[Activity completion]]). Note that ALL availability restrictions (date, grade condition, activity completion condition) have to be met in order for the activity to be made available.
To use conditional activities, the feature must be enabled by an administrator by checking the enable availability box in ''Settings > Site administration > Advanced features''. A restrict access section will then appear for teachers on the edit activity page.


{{Moodle 2.2}}Note that with Moodle 2.2 it is possible to restrict availability based on an actual time and not just a date.
==Restricting access==
[[File:newrestrictaccess.png]]
 
The restrict access section asks for the conditions when the activity (or resource) should be visible. This can be based upon dates, and/or score ranges of other activities and/or if other activities are considered completed (see [[Activity completion]]).
 
Note that ALL access restrictions (date, grade condition, activity completion condition) have to be met in order for the activity to be made available and that access may be restricted to an actual time and not just a date.
 
Generally access is prevented ''before'' the conditions are met, however if 'Allow access until' is enabled, then access is prevented ''after'' the specified date.
 
===Restricting access to course sections===
 
It is possible to restrict access to activities within a whole course section by specifying the conditions in the settings for that particular section.
 
[[File:sectioncompletion1.png]]
 
Watch the [http://youtu.be/5Z0pYuOiZ5E "Restrict access to course sections" screencast] for a demonstration.
 
===Restricting access by user profile fields===
 
{{New features}}It is possible to restrict access to activities based on a custom user profile field. You can select a field type, condition and name. For more information please see [[Conditional user fields]]. You can also watch the [http://www.youtube.com/watch?v=Y3LNq82gD9k&feature=share&list=UUCRg_EbhU9tdpLdiGGN1Mgg "Conditional profile fields" screencast] to see this feature in action.
 
{|
|[[File:userfield1.png|thumb|Restricting access by user profile field]]
|[[File:userfield2.png|thumb|An example of restricting access to members of one department only]]
|}


===Grade condition===
===Grade condition===
Line 16: Line 38:
* If creating several different activities that appear according to grade ranges, use the same number for the maximum of one activity, and the minimum of the next. For example, you might create one activity with a maximum of 7 and another with a minimum of 7. The first would appear to everyone scoring between 0 and 6.99999, and the second would appear to everyone scoring 7.00000 to 10. This guarantees that everyone with a grade will see one or other.
* If creating several different activities that appear according to grade ranges, use the same number for the maximum of one activity, and the minimum of the next. For example, you might create one activity with a maximum of 7 and another with a minimum of 7. The first would appear to everyone scoring between 0 and 6.99999, and the second would appear to everyone scoring 7.00000 to 10. This guarantees that everyone with a grade will see one or other.


==Site enabling settings==
[[de:Einstellungen zur bedingten Verfügbarkeit]]
''Site administration > Advanced features > Enable conditional access'' (enableavailability)
 
Conditional activities must be enabled on the Moodle site before it can be used by the teacher.

Latest revision as of 12:45, 7 May 2013

Enabling the use of conditional activities

To use conditional activities, the feature must be enabled by an administrator by checking the enable availability box in Settings > Site administration > Advanced features. A restrict access section will then appear for teachers on the edit activity page.

Restricting access

newrestrictaccess.png

The restrict access section asks for the conditions when the activity (or resource) should be visible. This can be based upon dates, and/or score ranges of other activities and/or if other activities are considered completed (see Activity completion).

Note that ALL access restrictions (date, grade condition, activity completion condition) have to be met in order for the activity to be made available and that access may be restricted to an actual time and not just a date.

Generally access is prevented before the conditions are met, however if 'Allow access until' is enabled, then access is prevented after the specified date.

Restricting access to course sections

It is possible to restrict access to activities within a whole course section by specifying the conditions in the settings for that particular section.

sectioncompletion1.png

Watch the "Restrict access to course sections" screencast for a demonstration.

Restricting access by user profile fields

New feature
in Moodle 2.4!
It is possible to restrict access to activities based on a custom user profile field. You can select a field type, condition and name. For more information please see Conditional user fields. You can also watch the "Conditional profile fields" screencast to see this feature in action.

Restricting access by user profile field
An example of restricting access to members of one department only

Grade condition

You can specify a condition on any grade in the course: the full course grade, the grade for any activity, or a custom grade that you create manually. You can enter either a minimum value (at least percentage), a maximum value (less than percentage), both, or neither. The activity will only appear if the student has a value for the specified grade, and if it falls within any specified number range. You can add more than one grade condition. All conditions must be met in order for the activity to appear.

  • The range numbers can be fractional (with up to five decimal places) if necessary.
  • Be careful with the maximum value; if the maximum is 7, a student who scores exactly 7 will not see the activity. You could set it to 7.01 if you really wanted to include 7.
  • If creating several different activities that appear according to grade ranges, use the same number for the maximum of one activity, and the minimum of the next. For example, you might create one activity with a maximum of 7 and another with a minimum of 7. The first would appear to everyone scoring between 0 and 6.99999, and the second would appear to everyone scoring 7.00000 to 10. This guarantees that everyone with a grade will see one or other.