Show Activity B if Activity A has not been attempted (v3.10.3)

Show Activity B if Activity A has not been attempted (v3.10.3)

av Quintin Seegers -
Antall svar: 3
Bilde av Particularly helpful Moodlers

Apologies in advance if this is not the correct forum.

In one of our courses, we use two Label activities to provide students with additional information. Label A should only be visible if the student hasn't started a specific Lesson Activity. Label B should only be visible if the student has completed said Lesson Activity. The Lesson Activity is set up with Completion Tracking. 

I can get Label B to show easily with the Restrict Access set to show if said Lesson Activity is completed (and hidden if said Lesson Activity is not completed.) However, I can't get Label A to show when the student hasn't started said Lesson Activity.

The workflow should be something like this:
Show Label A  = True if (Lesson Activity not started)
Show Label B = True if (Lesson Activity completed)

Is there a way to achieve this?

Gjennomsnittlig vurdering: -
Som svar til Quintin Seegers

Re: Show Activity B if Activity A has not been attempted (v3.10.3)

av Michael Hughes -
Bilde av Core developers Bilde av Plugin developers
The tricky part is the completion conditions, you can easily set up a lesson activity to become available once something is completed (or what ever other conditions the activity offers) but if it doesn't offer a "started" condition then you can't set this up.

It's entirely dependent on the conditions being offered, and most are completion conditions rather than initiation conditions.

Lesson offers:

So it depends on what you mean by "completion", it may be that "Require view" is sufficiently close to "start lesson".
Som svar til Quintin Seegers

Re: Show Activity B if Activity A has not been attempted (v3.10.3)

av Michael Hughes -
Bilde av Core developers Bilde av Plugin developers

You're label activity then needs :


Set "must / must not" appropriately.

The scored out eye icon means the user won't see the activity *at all* if they don't meet the condition.

Som svar til Michael Hughes

Re: Show Activity B if Activity A has not been attempted (v3.10.3)

av Quintin Seegers -
Bilde av Particularly helpful Moodlers
I played around some more and got it working by setting the Access Restrictions for each label as follows:

Label A: Visible if Lesson Activity is incomplete.
Label B: Visible if Lesson Activity is complete.

I'm sure I did try this yesterday, but must not have.