mturk HIT QuestionForm Question Element
Jump to navigation
Jump to search
An mturk HIT QuestionForm Question Element is a data structure element of an mturk HIT QuestionForm.
- Context:
- It can (typically) be used to contain a question.
- Example(s):
- See: QuestionForm Overview Element.
References
2015
- http://docs.aws.amazon.com/AWSMechTurk/latest/AWSMturkAPI/ApiReference_QuestionFormDataStructureArticle.html#ApiReference_QuestionFormDataStructureArticle-questionform-structure
- QUOTE: QuestionIdentifier: An identifier for the question. This identifier is used to associate the Worker's answers with the question in the answer data.
<Question> <QuestionIdentifier>answer</QuestionIdentifier> <QuestionContent> <Text>${question}</Text> </QuestionContent> <AnswerSpecification> <FreeTextAnswer/> </AnswerSpecification> </Question>
<Question> <QuestionIdentifier>category</QuestionIdentifier> <QuestionContent><Text>Category:</Text></QuestionContent> <AnswerSpecification> <SelectionAnswer> <MinSelectionCount>1</MinSelectionCount> <StyleSuggestion>radiobutton</StyleSuggestion> <Selections> #set ($categories = [ "Airplane","Anchor","Beaver","Binocular","Brain","Camera","Car","Cellphone","Chair","Crocodile","Elephant","Faces","Flamingo","Garfield","Helicopter","Kangaroo","Laptop","Lobster","Motorbike","Octopus","Pizza","Pyramid","Scissors","Snoopy","Soccer Ball","Stop Sign","Strawberry","Umbrella","Watch","Wheelchair" ] ) #foreach ($category in $categories ) <Selection> <SelectionIdentifier>$category</SelectionIdentifier> <Text>$category</Text> </Selection> #end </Selections> </SelectionAnswer> </AnswerSpecification> </Question>
<Question> <QuestionIdentifier>tag${tagNum}</QuestionIdentifier> #if( $tagNum <= $minimumNumberOfTags) <IsRequired>true</IsRequired> #else <IsRequired>false</IsRequired> #end <QuestionContent><Text>Tag ${tagNum}:</Text></QuestionContent> <AnswerSpecification> <FreeTextAnswer> <Constraints> <Length maxLength="25" /> <AnswerFormatRegex regex="^[^ ]*$" errorText="Each tag must be a single word (and cannot contain spaces)."/> </Constraints> <NumberOfLinesSuggestion>1</NumberOfLinesSuggestion> </FreeTextAnswer> </AnswerSpecification> </Question>
<Question> <QuestionIdentifier>1</QuestionIdentifier> <QuestionContent> <Text>${question}</Text> </QuestionContent> <AnswerSpecification> <SelectionAnswer> <MinSelectionCount>1</MinSelectionCount> <MaxSelectionCount>1</MaxSelectionCount> <StyleSuggestion>radiobutton</StyleSuggestion> <Selections> <Selection> <SelectionIdentifier>${choice1}</SelectionIdentifier> <Text>${choice1}</Text> </Selection> <Selection> <SelectionIdentifier>${choice2}</SelectionIdentifier> <Text>${choice2}</Text> </Selection> <Selection> <SelectionIdentifier>noneoftheabove</SelectionIdentifier> <Text>None of the Above</Text> </Selection> </Selections> </SelectionAnswer> </AnswerSpecification> </Question>