View source: R/test_elements.R
multi_radiobutton_NAFC_page | R Documentation |
Creates a multiple radiobutton n-alternative forced choice page.
multi_radiobutton_NAFC_page(
label,
prompts,
choices,
instruction = "",
labels = NULL,
trigger_button_text = "Continue",
failed_validation_message = "Answer missing!",
save_answer = TRUE,
hide_response_ui = FALSE,
random_order = FALSE,
response_ui_id = "response_ui",
on_complete = NULL,
admin_ui = NULL
)
label |
(Character scalar) Label for the current page. |
prompts |
(Character vector) Prompts to be displayed over the response choices |
choices |
(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. |
labels |
Optional vector of labels for the NAFC radiobutton choices.
If not |
trigger_button_text |
(Character scalar) Text for the trigger button. |
failed_validation_message |
(Character scalar) Text to be displayed when validation fails. |
save_answer |
(Boolean scalar) Whether or not to save the answer. |
hide_response_ui |
(Boolean scalar) Whether to begin with the response
interface hidden (it can be subsequently made visible through Javascript,
using the element ID as set in |
random_order |
(Boolean scalar) Whether the order of the items should be randomized. |
response_ui_id |
(Character scalar) HTML ID for the response user interface. |
on_complete |
Optional function to execute on leaving the page
(after successful validation).
The argument list should include |
admin_ui |
Optional UI component for the admin panel. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.