Replies: 1 comment
-
Hi mrinmayik, I think what you need here are dynamic parameters. So in the NPAT_Recall trial, your pages should be defined as a function that returns an array with the pages. That function will be called the moment that your trial is initiated so it should work |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm building an experiment where the participant first enters a bunch of information, and then a subsequent
jsPsychSurvey
trial displays the input from the participant to ask further questions.This is what I had planned:
But when I run this I get the error:
There is no visible page or question in the survey.
, presumably because when NPAT_Recall is created at compilation, there are no trials in the data that can be filtered to build the page.I've played around with defining
NPAT_Recall
inside anon_finish
block in theNPAT_Responses
trial, and then usingjsPsych.addNodeToEndOfTimeline
. That works, but it addsNPAT_Recall
to the end of the experiment, rather than afterNPAT_Responses
.There is a solution here that might work. But I'm just not sure what to replace
trial.stimulus
within theon_start
block, to supply the information topages
.Thanks a lot!
Mrinmayi
Beta Was this translation helpful? Give feedback.
All reactions