Skip to contents

Creates a searchable dropdown for species selection that changes based on the radio button selection. Can display either vernacular names or scientific names.

Usage

dropdownBasedOnRadioBtn(
  radioBtn_search_byName,
  radioBtn_search_byNameID,
  id1,
  label1,
  choices1,
  id2,
  label2,
  choices2
)

Arguments

radioBtn_search_byName

The current value of the radio button input

radioBtn_search_byNameID

The specific choice value to check against (e.g., "Vernacular" or "Scientific")

id1

Input ID for the first dropdown option (typically vernacular names)

label1

Label text for the first dropdown option

choices1

List of choices for the first dropdown option

id2

Input ID for the second dropdown option (typically scientific names)

label2

Label text for the second dropdown option

choices2

List of choices for the second dropdown option

Value

A shiny selectizeInput UI element with the appropriate options based on radio button selection