Hi
I am working on the code below. Everything works fine except for the statement.
"output.displayEnterButton == ' true' "
What condition do I have to test in order to determine that there is input in the box and therefore the "enterBtn" button should be displayed? By the way, I used backtick to format the code, but It does not seem to be totally formatted. Please advice.
Thanks,
ui <- fulidPage(
conditionalPanel(
condition = "output.displayTheSaveButton > '0'",
textInput("textbox", h5(strong("Please enter name/s to designate combined set/s separated by comma only - No spaces")))),
#verbatimTextOutput("caption"),
conditionalPanel(
condition = "output.displayEnterButton == 'true'",
actionButton("enterBtn", "Enter names")
)
)
server <- function(input, output, session){
output$displayEnterButton <- reactive({
req(input$textbox)
return(input$textbox)
})
outputOptions(output, "displayEnterButton", suspendWhenHidden = FALSE)
observeEvent(input$enterBtn, {
req(input$textbox)
result <- glycoPipe(input$textbox)
})
}