The last stimulus that was drag/dropped on the trial.
<trial> <likert> <openended> <sliderTrial> <surveyPage>
trial.name.lastDropSource
Read Only
string
This property returns the stimulus that was drag/dropped on the last run of the trial.
The following displays the value of lastDropSource in a text stimulus:
<text myText>
/ items= ("last drop target = <% trial.lastDropSource %>")
</text>
This code example shows how to store the value of the last dragged item (dot1 or dot2) in a value at the end of a trial (Note: 'this' represents 'trial.myTrial' in this context).
<trial myTrial>
/ inputDevice = dragDrop
/ stimulusFrames = [1 = target, dot1, dot2]
/ validResponse = (target)
/ onTrialEnd = {
values.lastDroppedItem = this.lastDropSource;
}
</trial>