Skip to content
Discussion options

You must be logged in to vote

Hi @veranicolette, you could use the jsPsych.setProgressBar function to manually set the progress bar values. For instance, in your instructions trial, you could use the on_load function to set the progress bar to 0 or a very small value:

on_load: function() {
  jsPsych.setProgressBar(0.05);
}

And to change the values in your main task, you need some way of tracking or calculating how far through the task the participant is. One way to do this is to use jsPsych's data functions, like the .filter function and .count function, to figure out how many trials of the main task the person has done. Then you can update the progress bar at the beginning or end of each trial:

var n_trials = 10;
var t…

Replies: 2 comments 1 reply

Comment options

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

Answer selected by veranicolette
Comment options

You must be logged in to vote
0 replies
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