Skip to content

End a a timeline within a nested timeline with warning message if non-response #3522

Answered by arturo-lin
arturo-lin asked this question in Q&A
Discussion options

You must be logged in to vote

I personally find out a way to achieve ending a timeline within a nested timeline by add on_finish function on taskA_step1 and taskA_step2.

The timeline for task A including two nested timeline: 1) main task taskA_step1, taskA_step2 and taskA_step3, and 2) the timeline for warning message. It should be noted that the warning message should always be placed at the end of the timeline so the whole taskA timeline will end after the message trial as expected.

    /* Task A */
    const taskA_emptyResponseWarning = {
        type: jsPsychHtmlKeyboardResponse,
        stimulus: '<p>You have not responded to the question. The Task A will end immediately.</p>',
        choices: "NO_KEYS",
       …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by arturo-lin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant