I'm working with an shiny app and i'd like to create an query with an action button that updates the url according to the user input (in this case, a textInput input$query_user
).
For example, this is my ip: http://127.0.0.1:6858
And after the user fills the textInput
, clicks an action button it would upload the url to http://127.0.0.1:6858/?lookfor=query_user
I've seen this post: R shiny: Add weblink to actionButton
but it doesn't work, because the example does not reads my input.
actionButton(inputId='query_button',
label="Search",
icon = icon("th"),
onclick = paste("location.href='http://127.0.0.1:6858?lookfor=",
input$query_user, "'", sep="))
)
)