Interactive Video - Submit on Continue button


Hi guys.

I am working with Interactive Videos. I have some Single Choice Set and I want to submit the answer when I click on "Continue" button after the questions (Not in the submit screen).

I am working on handleButtonClick method in question.js (line 1265).

Something like:

if (id == 'iv-adaptivity-wrong') {
    self.triggerXAPIScored([get score], [get max score], 'completed');

However, I am not able to do the submit.

In this case, I am trying to replicate the method handleSubmit() (line 111 in endscreen.js).

I also tried to call that method, but I am not able to do it.

Do you know if there is something wrong or if it is possible to do it the submit without submit screen?

I am not an expert on Javascript.

Maybe there are some examples.