hideSurvey()for easily hiding the survey. This may be useful for, as an example, displaying results upon submission.
numerInput(), which is identical to
shiny::numericInput() but is more flexible in the sense that it does not require an initial value and it allows placeholders. This is now the default for “numeric” input questions.
Created a shiny input,
radioMatrixInput(), for matrix questions. It will return
NULL until all possible response items have been answered, at which time a data frame with the ‘question_id’, ‘question_type’, and ‘response’ will be returned.
Added support for “instructions” ‘input’ types for use within other question types or standalone blocks.
Added support for multiple page surveys by adding a ‘page’ column to the data frame of questions supplied to
surveyOutput(). The column can either have numeric
(e.g. c(1, 1, 2, 3)) or character values (
c("intro", "intro", "middle", "final")). For more information, see my blog post on multipaged shinysurveys.
Added support for aggregating response data with
getSurveyData(). This feature allows you to automatically save responses for each individual. That is, this function accounts for dependencies; it will only aggregate data from questions a participant saw. It returns a data frame with a participant’s ID, question (input) ID, the question type (e.g. numeric, text, etc.) and response. For more details, see “Aggregate Responses with getSurveyData()”.
Fixed bug where required dependency questions prevented people from submitting the survey (since they could not “answer” hidden questions the submit button would not be enabled).
Added error messages to help with identifying common errors with creating surveys, specifically unrecognized input types.
Removed “grid” CSS container surrounding the survey div.
Changed how SASS rendered the CSS internally to improve performance. CSS rules are placed within style tags in the DOM.