Questions tagged [selectinput]
209 questions
6
votes
2 answers
How to select all the Input at once from selectInput function in R
In the shiny App which I am creating I have a set of Drop down list boxes which are interconnected with each other. That is the input of One drop down box decides the set of Input for others.
For the drop down boxes i use selectInput() function to…

David Chris
- 255
- 4
- 16
5
votes
1 answer
React MUI Multiple Select with Checkboxes not Check marking Initial Selected Options
I am still new in React and MUI, so please spare my life. I am learning to build Multiple Select Options with Checkboxes and I have populated the Dropdown Options from an Array.
I also have set up the initial/default state options. The…

My Name is Ratna
- 73
- 1
- 1
- 4
5
votes
1 answer
Get the group label from a grouped list of choices in SelectInput (RShiny)
How do I get the group name from the selected input in a selectInput dropdown box with grouped choices? For example, how do I get Building after I select Bank within Building and Nature after I select Bank within Nature?
Updated example:
# demoing…

Zhe Wang
- 53
- 5
5
votes
1 answer
R - Shiny Data Table (renderDataTable) reloads to first page when user is on a different page and updates a certain column value (selectInput)
PROBLEM: R Shiny Data Table reloads to the first page whenever user is on a different page of the data table and updates a certain column value (via selectInput).
Hi Stack Users,
In R Shiny, I've created a Shiny application that contains a data…

Miklos Morada
- 115
- 5
4
votes
2 answers
Rshiny : y axis based on selectinput for barplot but with a fixed x axis
Here is my data :
years bank hospital school police housing
2016 125 436 248 7.612 2.535
2017 167 497 281 8.215 3.145
2018 6064 2792 7564 38015 329
2019 2.972 3.070 …

wendy forehead
- 71
- 4
4
votes
0 answers
How to query SQL database in shiny app using a reactive expression with multiple inputs from shiny::seletctInput()
I am (very) new to shiny and am trying to create an app where the user can input their choice of one or more options, with their input choice then being used to query an SQL database. For example, if the user selects ‘Dublin’ or ‘Aberdeen’ the app…

future_squirrel
- 41
- 2
4
votes
3 answers
Grouped select input with only one item
I wanted to group my selectInput data as explained here: https://shiny.rstudio.com/gallery/option-groups-for-selectize-input.html. Everything works except the situation where there is only one item in the group.
Here is an example (with correct…

Marta
- 3,032
- 3
- 17
- 34
4
votes
0 answers
Adding a horizontal scroll bar in selectInput
Is it possible to add a horizontal scroll bar to a selectInput with a fixed number of items (e.g. size = 5)?
Some items are too long and will not show completely, and I don't want to change the width of the selectInput.
I tried adding it…

wati
- 310
- 2
- 11
3
votes
1 answer
How to align SelectInput to left without extra spaces in shiny R
I've this Shiny app:
if (interactive()) {
shinyApp(
ui = fluidPage(
selectInput("variable", "Variable:",
c("Cylinders" = "cyl",
"Transmission" = "am",
"Gears" = "gear")),
…

asdf1212
- 389
- 2
- 11
3
votes
1 answer
selectizeInput: allowing one element per group
I have a selectizeInput with some grouped elements with multiple selection. Is there an elegant way (e.g. using the options argument) of allowing just one element per group, so that a whole group will discarded (or disabled) when an element of this…

wati
- 310
- 2
- 11
3
votes
1 answer
Multiple Separate Plots on User select/multi input
I want to visualize plot/s based on user input. I have a dropdown menu and if the user select one or more variables out of the choices given, the code automatically visualize the separate plots for each variable based on the user inputs.
Code: This…

RShiny_Noob
- 47
- 1
- 6
3
votes
1 answer
Dynamically update two selectInput boxes based on the others selection in R Shiny
I am developing a shiny app and have two selectInput boxes. Both of them take the same inputs and I want to update the input boxes based on the other's selection.
Basically I want to remove the selected variable on one input box not available on the…

z star
- 684
- 6
- 19
3
votes
2 answers
How to reduce space between label and choices in selectinput?
I would like to remove/reduce the space between the label and selection options for a selectinput in Shiny. I would also like to reduce the space between two different selectinputs.
I have tried to wrap the selectinputs in a div style and set margin…

PeterJ
- 79
- 5
2
votes
1 answer
Multiple select2 input of the same class on same page
This code gives add-more functionality with jquery clone & Append methods for select2 input which is not responding after clicking add more. What am I missing?

devsam247
- 1,280
- 13
- 18
2
votes
2 answers
Is there a way to display HTML inside a selectInput in an R shiny app
Is there a way to display HTML tags such as Cu2+ displaying as "Cu2+" inside a selectInput option in an R shiny app ? I would like to display chemical formulae for instance:
library(shiny)
ui <- fluidPage(
withMathJax(),
…

Lemniscomys
- 61
- 3