Must specify either character
or file
.
To be valid, an HTMLQuestion data structure must be a complete XHTML document, including doctype declaration, head and body tags, and a complete HTML form (including the form
tag with a submit URL, the assignmentId for the assignment as a form field, at least one substantive form field (can be hidden), and a submit button that posts to the external submit URL; see GenerateExternalQuestion
.). If you fail to include a complete form
, workers will be unable to submit the HIT. See the API Documentation for a complete example.
MTurkR comes pre-installed with several simple examples of HTMLQuestion HIT templates, which can be found by examining the templates directory of the installed package directory. These examples include simple HTMLQuestion forms, as well as templates for categorization, linking to off-site surveys, and sentiment analysis. Note that the examples, while validated complete, do not include CSS styling.