Toggles .is-valid / .is-invalid on the control registered under id and,
when message is supplied, replaces the text of the matching feedback
message declared with bs_feedback().
Usage
set_bs_validation(
id,
state = c("valid", "invalid", "none"),
message = NULL,
session = shiny::getDefaultReactiveDomain()
)Examples
if (interactive()) {
set_bs_validation("user", "invalid", "That name is taken.")
}