Hide UI elements in R Shiny using conditionalPanel to preserve default values and prevent reactive errors.