Description Usage Arguments See Also
buildQuestion
returns a question definition given the parts
a fully formed question definition consists of.
1 | buildQuestion(id, dataIds = id, ui, validate = NULL)
|
id |
(character) the unique identifier of the question; it will be used
as the column name in the data.frame returning the questionnaire data
and when prefixed with |
dataIds |
(character) the list of identifiers that should be
moved from the When a question definition consists of multiple input fields, this argument needs to specify the identifiers of those fields. |
ui |
(list|function) a list of UI components of the question or a function that should return the UI components of the question. Use a list to build static content and a function to build dynamic content. |
validate |
(function) a function that should return an empty string if the entered data is valid and a non-empty string, with the validation message, if the entered data is not valid. |
buildNonQuestion
,
question.mixed
,
question.multiple
,
question.numeric
,
question.single
,
question.text
.
Other question buidling functions: makeQuestionInputId
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.