I’m trying to compare the user’s stored answer to the “correct answer” retained by Lectora for a graded test question, but can’t figure out how to locate the “correct answer” in order to do the comparison.
I am attaching external files: CSS, JS, jQuery. I have a long form (PNG created from Illustrator) which has many scored questions on it (could be 30 or more items, usually TEBs). When the user clicks on a checkBtn then the items should be evaluated and if the user’s entry is incorrect the <input> or <select> will be outlined in red.
I do realize that the variable that stores the answer needs to have a “VAR” prepended to it when working with the code.
Example: question1 with a variable name=_myVariable would be referenced as “Var_myVariable” in code. What would the stored correct answer in Lectora be called so that I can write my statement?