title: RStudio Shiny: The confliction between an action button and a submit button
body: <p>In my R Shiny app, I have an action and a submit button.</p>
  
  <pre><code>server &lt;- function(input, output) {
    X = reactive(data.frame(x=rnorm(10),y=rpois(10,10),z=runif(10)))
    Y = eventReactive(input$flush, {
      X()[,sample(1:3)]
    },ignoreNULL=FALSE)
  
    output$distPlot &lt;- renderTable({
      Y()    
    })
  }
  
  ui &lt;- fluidPage(
    actionButton("flush","flush order"),
    submitButton("update"),
    tableOutput("distPlot") 
  )
  
  
  shinyApp(ui = ui, server = server)
  </code></pre>
  
  <p>What I want:
  The order of variables randomly changing when I click the action button.</p>
  
  <p>What happens:
  I have to click action button first and subsequently click the submit button to get this to execute.</p>
  
  <p>Question:
  How can I get the desired behavior while keeping that submit button.</p>
  
  <p>There are many tabs with more submit buttons in my app. So it's most desirable that we could just add an action button without affecting the rest of the contents.</p>