How to reset the value of several actionButtons? (shiny package)

Viewed 2377

I have created some logic where I tried to add several actionButtons, but everything works fine until each button is clicked once. When every button is once clicked all buttons are automatically clicked with the 2nd, 3rd and etc iteration. How do I reset value of actionButton or should I change the whole logic of server side?

observe({
  if (input$actionButton_1 == 0)
    return()
  isolate({
    # logic
  })
 if (input$actionButton_2 == 0)
    return()
  isolate({
    # logic
  })
 ...
})
2 Answers
Related