How to retake test

How to retake test

Hi there!
When a user complete a training and take the test, it never shows the option to take the test again if they return later. However, in some cases, we need to allow the users to retake the test when they failed. Is there a way to present the test  again for the same user?