Relative Content

Tag Archive for rshiny

Hide and display Text based on actionButton and selected choices of shiny widget

In the shiny app below I have 2 shiny widgets related to each other and then a Preview button which is activated when we have values in shools widgets. When I click Preview also a text is displayed. The issue is that I want this text to be hidden when I have no values in my school widgets. And then displayed again when I have at least one school selected and click Preview.

Saving R tempfiles into a zip with desired names

I generate files within my shiny app and save then in tempfiles later to be downloaded within a zip.
However, naming the files within the zip is not so obvious.
I spent over an hour with ChatGPT trying to solve the issue, no success.