text_input_page | R Documentation |
Creates a page where the participant puts their answer in a text box.
text_input_page(
label,
prompt,
one_line = TRUE,
save_answer = TRUE,
placeholder = NULL,
button_text = "Next",
width = "300px",
height = "100px",
validate = NULL,
on_complete = NULL,
admin_ui = NULL
)
label |
Label for the current page (character scalar). |
prompt |
Prompt to display (character scalar or Shiny tag object). |
one_line |
Whether the answer box only has one line of text. |
save_answer |
Whether or not to save the answer. |
placeholder |
Placeholder text for the text box (character scalar). |
button_text |
Text for the submit button (character scalar). |
width |
Width of the text box (character scalar, should be valid HTML). |
height |
Height of the text box (character scalar, should be valid HTML). |
validate |
Optional validation function.
The argument list should include |
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.