Changing Lectora test question variable with JavaScript

Hi,

I'm trying to set a question variable to a value based on a condition. You can probably see what I'm trying to do from the code below:


alert('You are not required to complete this question. Please proceed to the next question.');

VarQuestion_1_2.set('A');

//VarQuestion_1_2.value = 'B';

alert(VarQuestion_1_2.value);

trivNextPage();


If it's determined the user does not need to do the question then the question variable is set to some value to signify that, and the page is advanced. The question variable seems to be getting set; the alert displays A for its value but a dash is displayed in the LMS table for that question. This is a multiple choice question type. What am I doing wrong?

Discussions have been disabled for this post