I think is the first choice,
I have a few lessons, but I have 2 scenarios.
I want to lock the lesson’s navigation bar in these situations…
1: if the student didn’t pass the quiz of a lesson with a quiz, the lesson’s navigation bar should keep locked, until they pass it and show an alert with something like, “you must need to pass the quiz.”
2: if lesson isn’t mark as complete, the lesson’s navigation bar should keep locked and show an alert with “You need to complete the lesson to go to the next.”
Cheers,