get_p_id | R Documentation |
A psychTestR page that gets the participant to enter their ID.
get_p_id(
prompt = "Please enter your participant ID.",
placeholder = "e.g. 10492817",
button_text = "Next",
width = "300px",
validate = "auto",
admin_ui = NULL
)
prompt |
Prompt to display (character scalar or Shiny tag object) |
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). |
validate |
Optional validation function.
The argument list should include |
admin_ui |
Optional UI component for the admin panel. |
Participant IDs must be between 1 and 100 characters long, and solely comprise alphanumeric characters and underscores.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.