Skip to content
Discussion options

You must be logged in to vote

Hi @davidlevari! One way to do this might be to use the minimum valid RT setting and present a single trial with the prompt, but set it's visibility to hidden using the HTML in-line style attribute. Then in the trial's on_load function, you can set up a timer that changes the prompt's visibility after a delay.

/* display stimulus with choices and wait for keyboard response */
var displayStimulusAndChoices = {
  type: jsPsychHtmlKeyboardResponse,
  stimulus: jsPsych.timelineVariable('stimulus'),
  choices: ['f', 'j'],
  trial_duration: null,
  data: {
    task: 'response',
  },
  prompt: '<p id="prompt" style="visibility:hidden;"> NO (F) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nb…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@davidlevari
Comment options

@becky-gilbert
Comment options

Answer selected by davidlevari
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