Skip to contents

This function creates a tag list of input fields with namespaced IDs. The IDs are dynamically generated based on a provided namespace prefix, allowing these inputs to be used within a Shiny module or application with a consistent naming structure.

Usage

tag_speaker_input_form(ns_prefix, ind_evaluation_date = TRUE)

Arguments

ns_prefix

A character string representing the namespace prefix to be applied to each input field's ID.

ind_evaluation_date

A TRUE or FALSE indicator to show the evaluation date in the form.

Value

A tagList containing multiple Shiny input elements with namespaced IDs, including:

  • first_name: A required text input for the speaker's first name.

  • last_name: A required text input for the speaker's last name.

  • date_of_birth: A required date input for the speaker's date of birth.

  • date_of_evaluation: A required date input for the speaker's date of evaluation.

  • language_spoken: An optional text input for the speaker's language spoken.

  • gender: An optional text input for the speaker's gender.

Each required field is indicated with an asterisk, as noted in the form text.