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.
/ items = Prompt
/ select = values.Item_index
/ items = (" <% video.prompt_snd.currentitem %>")
/ ontrialbegin = [expressions.Update_item_index]
/ ontrialbegin = [values.item_number = substring(video.prompt_snd.currentitem, 0, 8)]
/ Update_item_index =
if (values.block == 11) values.Item_index = counter.PK1_1_EBLMC_items.selectedvalue;