Determines whether visual stimuli can be dragged and dropped onto this stimulus.
visualstimulus.name.dropTarget
Read/Write
boolean
A value of true (or 1) indicates the stimulus is a valid dropTarget. A value of false (or 0) indicates that items can not be dragged and dropped on it. Visual stimuli marked as
The following displays the value of dropTarget in a text stimulus: The following displays the value of dropTarget in an instruction page: The following code shows how to turn on and off the dropTarget property of stimuli at the beginning of a trial. In this particular case, the 'dot' can now only be dropped onto the 'leftBox', even if the 'rightBox' was previously set to be a dropTarget as well.Examples
<text myText>
/ items= ("dropTarget = <% text.myText.dropTarget %>")
</text>
<page myPage>
droptarget = <% text.myText.dropTarget %>
</page>
<trial foo>
/ inputDevice = dragDrop
/ onTrialBegin = {
shape.leftBox.dropTarget = true;
shape.rightBox.dropTarget = false;
}
/ stimulusFrames = [1 = leftBox, rightBox, dot]
/ validResponse = (leftBox, rightBox)
</trial>