R Shiny Select input choice inside server function

0 votes
I want to show choices for selectInput using calculation from other input functions. How to to this?

I have year and product in 2 selectInputs objects, i want to calculate the 3rd input variable product depending on first 2 inputs.
Aug 13, 2019 in Data Analytics by karthick
2,010 views

1 answer to this question.

0 votes
Use renderUI function within the server function to manage selectInput object.

Ex:

output$team_ = renderUI({ selectInput("team","Home Team",choices = unique(IPL %>% filter(season == input$season_team) %>% select(team1))) })

This function output is added in ui function to chnage input depending on another input from server function.
answered Oct 29, 2019 by Cherukuri
• 33,030 points
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP