Replies: 1 comment
-
|
Hi Dan, You can wrap your var task_how_elab_block ={
type: 'survey-text',
questions: function(){
return [
{prompt: "Please elaborate on how" + jsPsych.data.get().select('topWay').values[0] + "is a good way to do stuff. (10 words minimum).", rows: 5, columns: 40}
]
}
};It would be nice to support wrapping individual pieces of parameters (like just |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I have two trials, one following each other. I want to use the responses collected in the first trial, to show them in the prompt in the trial that follows. I know that the prompt needs to be wrapped into a function() in order for JSpsych to re-evaluate it, otherwise the value comes up as undefined. However, I do not know how to wrap the question or the prompt in a function.
This is where I capture the value the first time:
And this is where I want to use it:
However, using prompt: function() { return....} does not work.
Thanks!
Dan
Beta Was this translation helpful? Give feedback.
All reactions