How to hide continue button on failed quiz in Adobe Captivate 2024

I’m creating quizzes within my course, and I am giving unlimited tries to retake a quiz and pass it, but I don’t want the student advancing to the next module without passing the quiz. However, when they fail, the continue button shows up, and I need it to NOT show up unless they have passed the quiz. Please help.