I've solved my dilemma... mostly. The only issue is that now all of the tests and their data is loaded into every form slowing down how quickly the form loads and returns data.
On the very top of my form I created the interface for the user to be able to select the test they want to take. Below that I have the interface for the test itself. Once the user selects the test via a command prompt, the @TestType node for the users test is populated. This sets off a chain of events.
-
The selected test interface is hidden through a conditional format stating if @TestType is not blank then hide itself
-
The repeating section defining the test questions and possible answers are populated via visual basic code (ran under the change event of the @TestType node) and filters on the controls
-
The test interface is shown through a conditional format stating if @TestType is blank then hide itself. Since it is no longer blank, the test interface is shown.
When the user has finished taking the test and has submitted it. The form is reopened and the user is again presented with the interface to select the test. The difference this time, is the previously taken test has turned colors and the command button disabled indicating the test was previously taken.