r - Shiny: dynamic default value for textInput -
i see textinput
has default value field. however, can't seem figure out how dynamically set default value field. lets have selectinput
, want default value of textinput
value selected in selectinput
text appended it, user can freely edit.
on ui
side have textinput
can't value=paste0(output$selectname,"_sometext")
because can't use output
.
i'm guessing answer involves code on server
side updates textinput
. can't seem figure how updatetextinput
want, though sounds want. advice on dynamically generating default value textinput
appreciated.
regards
it appears needed use observe
in server
side , updatetextinput
worked.
Comments
Post a Comment