up Inquisit Language Reference

droptargets attribute

The droptargets attribute lists stimuli on the screen where dragged items can be dropped.

Member of



/ droptargets = (stimulus, stimulus, stimulus, ...)


stimulus The name of a visual stimulus being presented on this trial.


This attribute specifies a set of responses considered valid for the test monkey when performing this trial. The set can consist of any valid expression, including numbers, strings, and properties. When the test monkey is run and Inquisit encounters this attribute on a given trial, it will randomly select from the responses listed in the attribute. Controlling the monkey's response is useful for testing scripts that behave very differently depending on responding, or that allow the participant to abort the experiment with a particular response. For example, if a script includes an informed consent trial, the droptargets attribute can be used to make sure that the monkey always gives consent.


The following trial makes sure the monkey always consents to participate:

<trial consent>
/ stimulusframes=[1=consentform, agreebutton, disagreebutton]
/ inputdevice=mouse
/ validresponse=(agreebutton, disagreebutton)
/ droptargets=("agreebutton")
/ ontrialend=[if (trial.consent.response == "disagreebutton") script.abort()]

The following trial makes sure the monkey always consents to participate:

<trial example>
/ stimulusframes=[1=target]
/ inputdevice=keyboard
/ validresponse=("e", "i")
/ droptargets=(values.droptargets)

Send comments on this topic:
Copyright Millisecond Software, LLC. All rights reserved.