Creates HTML code for n-alternative forced-choice response radiobutton options.
make_ui_radiobutton_NAFC(
label,
choices,
subprompt = "",
labels = NULL,
trigger_button_text = "Continue",
hide = FALSE,
id = "response_ui"
)
(Character scalar) Label for the current page.
(Character vector) Choices for the participant. If unnamed, then these values will be used both for radiobutton IDs and for button labels. If named, then values will be used for button IDs and names will be used for button labels.
(Character scalar) Optional additional text in bold letters below the prompt.
Optional vector of labels for the NAFC radiobutton choices.
If not NULL
, will overwrite the names of choices
.
This vector of labels can either be a character vector
or a list of Shiny tag objects, e.g. as created by shiny::HTML()
.
(Character scalar) Text for the trigger button.
(Boolean scalar) Whether the radiobuttons should be hidden (possibly to be shown later).
(Character scalar) HTML ID for the div containing the radiobuttons.