Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version 8 bug in survey-text timeline #3404

Open
abhilasha-kumar opened this issue Sep 24, 2024 · 0 comments
Open

version 8 bug in survey-text timeline #3404

abhilasha-kumar opened this issue Sep 24, 2024 · 0 comments

Comments

@abhilasha-kumar
Copy link

I've used the following code to run a simple timeline for presenting some text and obtaining a survey response with v7.3.3.

const jsPsych = initJsPsych();
        
    
    var association = {
      type: jsPsychSurveyText,
      questions: [ {prompt: jsPsych.timelineVariable('cue')}],
    };

   
    var association_procedure= {
        timeline: [association],
        timeline_variables: association_cues,
        randomize_order: true,
        repetitions: 3 
    };   

    jsPsych.run([association_procedure])

The associated .js file with association _cues is as follows:

var association_cues = [
    {
        cue: "foobly"
    },
    {
        cue: "mipp"
    },
    {
        cue: "dodish"
    },
    {
        cue: "geck"
    }
]

The code displays each of the cue values in random order three times when I use jsPsych version 7.3.3. but only loads one of the cues in version 8 (e.g., it only displays foobly and does not advance/end the procedure).

Any ideas why? I'm using the CDN-hosted scripts:

<head> 
        <title> EXPERIMENT </title>
        <script src="https://unpkg.com/[email protected]"></script>
        <!--DOES NOT WORK: <script src="https://unpkg.com/[email protected]"></script>-->
        <link href="https://unpkg.com/[email protected]/css/jspsych.css" rel="stylesheet" type="text/css" />
        <script src="https://unpkg.com/@jspsych/[email protected]"></script>
        <script src="association.js"></script>
</head>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant