Skip to content
This repository has been archived by the owner on Feb 13, 2020. It is now read-only.

HW08: Problem with two conditional panels #533

Open
fjbasedow opened this issue Nov 21, 2018 · 0 comments
Open

HW08: Problem with two conditional panels #533

fjbasedow opened this issue Nov 21, 2018 · 0 comments

Comments

@fjbasedow
Copy link

Hi,

I have a conditional panel in my UI for country selection that only shows up if "filter by country" is selected. This one works as expected. Now I am trying to add an additional conditional panel to select subtypes of wine. However, when I add this one, both conditional panels are not working, i.e. they are always there, no matter what is selected. Moreover, the filtering of countries is also not working. If I delete the part for subtypes, the conditional panel for country filtering is working again. If I delete the part for countries, my conditional panel for subtypes is still not working.

Does anyone know why a new conditional panel would affect another one?

Here is my code for the side bar in the UI:

sidebarPanel(
  sliderInput("priceInput", "Price", 0, 100, c(25, 40), pre = "$"),
  uiOutput("typeOutput"),
  conditionalPanel(
    condition = "input.typeInput %in% 'WINE'",
    uiOutput("subtypeOutput")
    ),
  checkboxInput("countryFilter", "Filter by country", value = FALSE),
  conditionalPanel(
    condition = "input.countryFilter",
    uiOutput("countryOutput")
  )
)

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant