Skip to content
This repository was archived by the owner on May 24, 2019. It is now read-only.

Commit 5daabae

Browse files
committed
note requirements for HTMLQuestion
1 parent d75e809 commit 5daabae

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

man/GenerateHTMLQuestion.Rd

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ GenerateHTMLQuestion(character = NULL, file = NULL, frame.height = 450)
1010
\item{file}{An optional character string containing a filename from which to construct the HTMLQuestion data structure.}
1111
\item{frame.height}{A character string containing the integer value (in pixels) of the frame height for the HTMLQuestion iframe.}
1212
}
13-
\details{Must specify either \code{character} or \code{file}.}
13+
\details{
14+
Must specify either \code{character} or \code{file}.
15+
16+
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 \code{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 \code{\link{GenerateExternalQuestion}}.). If you fail to include a complete \code{form}, workers will be unable to submit the HIT. See the API Documentation for a complete example.}
1417
\value{A list containing \code{xml.parsed}, an XML data structure, \code{string}, xml formatted as a character string, and \code{url.encoded}, character string containing a URL query parameter-formatted HTMLQuestion data structure for use in the \code{question} parameter of \code{\link{CreateHIT}}.}
1518
\references{
1619
\href{http://docs.amazonwebservices.com/AWSMechTurk/latest/AWSMturkAPI/ApiReference_HTMLQuestionArticle.html}{API Reference}
@@ -41,4 +44,4 @@ ExpireHIT(hit1$HITId)
4144
DisposeHIT(hit1$HITId)
4245
}
4346
}
44-
\keyword{HITs}
47+
\keyword{HITs}

0 commit comments

Comments
 (0)