labelled_text_input_page: Labelled text input page

View source: R/test_elements.R

labelled_text_input_pageR Documentation

Labelled text input page

Description

Creates a page where the participant puts their answer in a text box. Derived from the psychTestR version to include labels

Usage

labelled_text_input_page(
  label,
  prompt,
  one_line = TRUE,
  save_answer = TRUE,
  placeholder = NULL,
  button_text = "Next",
  width = "300px",
  height = "100px",
  validate = NULL,
  input_label = NULL,
  on_complete = NULL,
  admin_ui = NULL
)

Arguments

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.

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).


klausfrieler/psyquest documentation built on Feb. 24, 2025, 11:20 p.m.