function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ashley ShealeyAshley Shealey 

Custom Test Module - Apex Code not restricting users from editing test once final submit

We have a custom test module and once a user submits the test, it is supposed to lock the user out from re-taking or editing the answers. They have 2 options, "Save and Finish Later" and "Submit". Save and Finish Later allows them to come back (click the test link) and resume the test. Submit is supposed to generate a message that they already submitted the test if they try to click the test link again. It seems this is not happening for all users. I did notice the "User Ids" field is not holding all the User Id's for Users that have submitted the test. It keeps resetting and only holding like 10 User Ids at a time. Not sure if this is the problem. Can anyone detect anything in the code that would cause this to happen?
(It wouldnt let me paste the code for some reason)

User-added image