Creates a checkbox page.
(Character scalar) Label for the current page.
Prompt to be displayed above the response choices.
Can be either a character scalar (e.g. "What is 2 + 2?") or an object of
class "shiny.tag", e.g.
shiny::tags$p("What is 2 + 2?").
(Character vector) Choices for the participant. If unnamed, then these values will be used both for checkbox IDs and for checkbox labels. If named, then values will be used for checkbox IDs and names will be used for checkbox labels.
(Character scalar) Optional additional text in bold letters below the prompt.
Optional vector of labels for the checkbox choices.
NULL, will overwrite the names of
This vector of labels can either be a character vector
or a list of Shiny tag objects, e.g. as created by
(Character scalar) Text for the trigger button.
(Character scalar) Text to be displayed when validation fails.
(Boolean scalar) Require at least one checkbox to be ticked.
(Boolean scalar) Whether or not to save the answer.
(Boolean scalar) Whether to begin with the response
using the element ID as set in
audio_NAFC_page for an example.).
(Character scalar) HTML ID for the response user interface.
Optional function to execute on leaving the page
(after successful validation).
The argument list should include
and any of:
state, the participant's state object;
answer, the participant's most recent answer;
input, the current page's Shiny input object;
session, the current Shiny session object;
opt, the test's option list as created by
Optional UI component for the admin panel.