up Inquisit Language Reference

lastDropSource property

The last stimulus that was drag/dropped on the trial.

Member of

<trial> <likert> <openended> <sliderTrial> <surveyPage>

Syntax

trial.name.lastDropSource

Read Only

Type

string

Remarks

This property returns the stimulus that was drag/dropped on the last run of the trial.

Examples

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>

Copyright Millisecond Software, LLC. All rights reserved.