Creates an n-alternative forced-foced choice page.
NAFC_page(label, prompt, choices, labels = NULL, save_answer = TRUE, arrange_vertically = length(choices) > 2L, hide_response_ui = FALSE, response_ui_id = "response_ui", on_complete = NULL, admin_ui = NULL)
Label for the current page (character scalar).
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.
Character vector of choices for the participant. If unnamed, then these values will be used both for button IDs and for button labels. If named, then values will be used for button IDs and names will be used for button labels.
Optional vector of labels for the NAFC choices.
Whether to arrange the response buttons vertically (the default) as opposed to horizontally.
Whether to begin with the response interface hidden
using the element ID as set in
HTML ID for the response user interface.