Skip to content
Discussion options

You must be logged in to vote

Hi mrinmayik,

For your first question, do you mean that you want to fill in the pages property of the suvrey as a timeline variable? In that case, you could use code such as the one below to make that happen:

  const jsPsych = initJsPsych();

    let timeline_questions = [
        {
            pages : [[{
                type : 'html',
                prompt : 'First page'
            },
            {
                type: 'multi-choice',
                prompt: "Which of the following do you like the most?", 
                name: 'VegetablesLike', 
                options: ['Tomato', 'Cucumber', 'Eggplant', 'Corn', 'Peas'], 
                required: true
            }, 
        ]]},

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mrinmayik
Comment options

Answer selected by mrinmayik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants