output$radio_buttons_period <- renderUI({
req(tlfb_v())
if(tlfb_v() == 1) choices <- c("Routine", "Pre-LMP", "Post-LMP", "Last Week")
if(tlfb_v() == 2) choices <- c("Routine", "Last Two Weeks Before Delivery")
radioGroupButtons(
"nature",
NULL,
choices = choices,
selected = "Routine",
individual = FALSE,
checkIcon = list(yes = icon("ok", lib = "glyphicon")),
width = "100%"
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.