video.xxxx.currentitem does not return correct value


Author
Message
Jeff
Jeff
Guru (9.3K reputation)Guru (9.3K reputation)Guru (9.3K reputation)Guru (9.3K reputation)Guru (9.3K reputation)Guru (9.3K reputation)Guru (9.3K reputation)Guru (9.3K reputation)Guru (9.3K reputation)
Group: Forum Members
Posts: 49, Visits: 123

I am trying to use the currentitem reference to a video element, but even though the correct video plays during the trial, the references to it returns the value of the previous item.  For example, if the first two items are "Item001" and "Item002", then during the first trial, "Item001" plays, during the second trial, "Item002" plays, but the references to video.prompt_snd.currentitem return "Item001" during both trials.  




<video Prompt_snd>


/ items = Prompt


/ select = values.Item_index


</video>



<text item_name>


   / items = (" <% video.prompt_snd.currentitem %>")


</text>



<trial test1_trials>


  / ontrialbegin = [expressions.Update_item_index]


    / ontrialbegin = [values.item_number = substring(video.prompt_snd.currentitem, 0, 8)]


...

</trial>






<expressions>


/ Update_item_index =


 if (values.block == 11) values.Item_index = counter.PK1_1_EBLMC_items.selectedvalue;


</expressions>





Attachments
currentitem reference demo.exp (1.1K views, 12.00 KB)
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Reading This Topic

Explore
Messages
Mentions
Search