Continuing to next question from embedded jspsych experiment

More
1 month 1 week ago #200290 by tdevalk
Hi all,

I have added a question group containing one question, which is an embedded jspysch experiment. After this experiment has ended I wish the survey to continue with the next question. How can I do this?
The script I use has a condition for checking that the experiment ended:

window.addEventListener("message", function(e) {
// continue to next question
}, false)

Thank you!

Please Log in to join the conversation.

More
1 month 1 week ago #200291 by tpartner
Assuming that the experiment is sending a message when it ends, try this:
window.addEventListener("message", function(e) {
    $('#ls-button-submit').trigger('click');
}, false)

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now