calling in data variable from previous trial (dynamic variable?) #2336
Unanswered
csavasegal
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I'm going to convert this to a discussion. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I've been trying to figure out how to reference a variable from a previous trial in an upcoming trial and have not been able to figure out how to and none of the solutions for similar problems have worked for me.
I have a trial that is a survey html form which saves out three things in the response variable called : first, second, third. I then reference these in the on_finish function of this trial as so:
This works out well when I get my data at the end of the experiment:
However, I cannot figure out how to reference the variable in future trials. I am trying to show it on a slider eventually. This is the current code that I am trying to use:
It says that the object (when converted to string) is empty. Like this: {"values":[]}. I put self_ML in both an on_finish and an on_trial_finish and neither worked too. I'd really appreciate any insight anyone has. Thanks!!
Ideally, I would add this variable as a timelineVariable but that seems impossible?
I am using jsPsych6.1 to integrate with pavlovia by the way.
Beta Was this translation helpful? Give feedback.
All reactions