Adding actions to the SUBMIT button in a scoring quiz.

Feb 05, 2016

To meet my company's requirements, I need some additional scoring items shown on the Posttest Results Page. I do not want to replace the existing SUBMIT button, because I believe that creates or includes coding that interacts with LMS's for submission of final scores. Is there a way to place additional triggers on the SUBMIT button? We have 4 test categories (question banks) and need to score by category, so I would propose using 8 variables (Qbank1-correct, Qbank1-wrong, Qbank2-correct, Qbank2-wrong, etc.) and incrementing the appropriate variable by 1 based on the student's selection when the SUBMIT button is clicked. I believe I can figure out how to create all calculations needed for our scores-by-category page from there, I just don't know how or where to add the correct/incorrect variable incrementation to the SUBMIT button.

7 Replies
Mike Taylor

Yes, Cheryl you can add additional triggers to the default submit button. just make sure you order them correctly. You can use the up/down arrows in the trigger panel to put them in the right sequence. 

If you're tracking things with custom variables, some of  those calculations might need to be made on each question as applicable.

Cheryl Micheel

This answers the first part of my question, thanks; I can see where the code is added to the SUBMIT button. Is there a way to see the interactions called "True/False" or "Multiple Choice" i.e., to see how the correct/not correct value is determined? The interactions I need to add would be based on whether or not the student has selected the correct response, and it would seem to make sense to me to use the same basis used in the built-in "True/False" or "Multiple Choice" interactions to be consistent. Is there a variable that is set indicating correct/not? What I want to do is add the value 1 to my user-created variable qBank1_Correct when the student correctly answers a question (from Question Bank 1), or to qBank1_Wrong if the student selects a wrong response. When creating a trigger, what is the variable name/variable setting that indicates correct or not, or what variables are being compared to determine if the answer is correct/not?

This discussion is closed. You can start a new discussion or contact Articulate Support.