Skip to content
Discussion options

You must be logged in to vote

Hi @Kedersha, I wonder if the problem is that the node variable is created before timeline_variables has been modified, so it's using the unmodified version. Would it work to just reorder things so that the modification to timeline_variables comes before you set up the node trial procedure? Something like this:

jatos.onload(function() {
  ra_num = jatos.studySessionData.ra_num;
  //truncating the timeline_variables array to only the ones remaining for this RA
  rec_ind = 0; //record index set to 0 by default
  //if there is a value associated with this RA from previous runs, change rec_ind
  ra_rec = jatos.batchSession.get("RA"+ra_num+"_record");
  if(ra_rec){
    rec_obj = timeline_varia…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Kedersha
Comment options

You must be logged in to vote
1 reply
@becky-gilbert
Comment options

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