title: Rshiny ConditionalPanel displaying both conditions
body: <p>I am fairly new to shiny and having a problem that I have seen others experience but I cannot seem to find a solution. My condtionalpanel in my Rshiny app is displaying all of my conditions. I have referenced the following links, even trying a renderUI solution, but had no luck. This seems like a simple issue I am just missing, but any help, an alternative solution to conditionalpanel, or insight on where the issue is would be much appreciated !</p>
  
  <p>(The values in the boxes are then used to update a graph and when I use this solution in my app, the graphs are also no longer displaying. I am limited in how much other code I can share)</p>
  
  <p><a href="https://stackoverflow.com/questions/47734546/r-shiny-conditionalpanel-displaying-both-conditions">R shiny conditionalPanel displaying both conditions</a></p>
  
  <p><a href="https://stackoverflow.com/questions/46764036/to-add-the-values-in-dynamically-created-textbox-in-rshiny">To add the values in dynamically created textBox in RShiny</a></p>
  
  <p><a href="https://stackoverflow.com/questions/29305395/producing-dynamic-multiple-input-boxes-to-collect-data-depending-on-user-selecti">Producing dynamic/multiple input boxes to collect data depending on user selection in Shiny R</a></p>
  
  <pre><code>runApp(list(
    ui = bootstrapPage(
      selectInput("ctype","test:" , c("F", "S"), selected = F),
      conditionalPanel("input.ctype == 'F'",
                       numericInput("comp", "Box 1", value =  100),
                       numericInput("comp1", "Box 2", value =  200),
                       numericInput("comp2", "Box3", value = 300),
                       actionButton("revert", "Back", icon = icon("history"))
  
      ),
      conditionalPanel("input.ctype == 'S",
                       numericInput("comp3", "Box 4", value = 0))
  
    ),
    server = function(input, output) {
      output$plot &lt;- renderPlot({ hist(runif(input$n)) })
    }
  ))
  </code></pre>
  
  <p>Below is the current output. What I need is for when "F" is selected , only "Box 1", "Box 2", "Box 3" and "Back" appear <strong>and <em>not</em> "Box 4"</strong> . When "S" is selected only "Box 4" appears. 
  <a href="https://i.stack.imgur.com/FexvE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FexvE.png" alt="enter image description here"></a></p>