Custom criteria for topic unlock

Custom criteria for topic unlock

by Anuj Gautam -
Number of replies: 0

Hi Just wondering if there is a way to Add a custom restriction to unlock Topic B,D,F based on doing a regex on the suspend_data of Topic Pre Assessment.

Example: Part of Topic Pre Assessment suspend Data looks like :  { "topicsCompleted":['A','C','E'], "topicsUnlocked":['B','D','F'] }

Now Topic B,D,F should be unlocked by checking the values in suspend data which is topicsUnlocked

Is this possible at all with Moodle? Any way I can add this to the Add Restriction Logic? Any custom functionality?


Average of ratings: -