Picture of Jared L
How to use _lockedType?
by Jared L - Tuesday, 3 April 2018, 11:50 AM
 

Hi

I've got a hotspot menu with a couple of articles attached with some questions, I've also got a completion certificate that I want to disable until the other sections have been attempted.

I put "_lockType": "lockLast" in my course.json at the end. Nothing happens, I'm able to open the certificate section just fine.

 

I also tried ,"_lockType": "custom"  in course.json and in contentObject "_lockedBy": ["co-60", "co-70", "co-80", "co-90"] on the certificate object (co-100) also nothing was locked.

How should I be doing this? Am I missing some setup here?

Thanks

Picture of Matt Leathes
Re: How to use _lockedType?
by Matt Leathes - Tuesday, 3 April 2018, 11:59 AM
 

Hi Jared

Looks like hotspot menu never got updated to add support for the locking system that was added in Adapt v2.0.9

If you look in the example.json or README you'll see it has its own locking system which you can presumably use instead.

Picture of Jared L
Re: How to use _lockedType?
by Jared L - Tuesday, 3 April 2018, 1:59 PM
 

Thanks Matt got it working, now those attributes make some sense.