knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
library(shiny.quetzio)

There may be some conditions under which you would like to update rendered questionnaire. Currently shiny.quetzio supports two of these updates:

In this vignette the usage of these features for Quetzio objects will be described in further detail.

This vignette assumes that the reader already knows how to create a questionnaire with shiny.quetzio. Otherwise, please get this information from 'Create a questionnaire' vignette.

Update of selected values

I think this feature can be most beneficial in two distinct situations and provide option to make your questionnaire more user-friendly:

Let's assume the values used in update are gathered from some questionnaire made with shiny.quetzio, eg. some demographic data:

Update of item labels

There are some situations, when you would like to have different item labels shown to different questionee based on some prior behaviour inside the app.

If the reactive passed as a trigger contains value not represented in the label update source, then the default labels will be shown.



StatisMike/shiny.survey documentation built on April 4, 2022, 5:03 a.m.