Using SelectInput data in a TextBox

Hi,

I have a selectInput in an if condition, I want o show the selected variable in other if else textbox. I am trying but unable to.

My code is-

        if
{
     insertUI(
               selector = "#message",
               where = "beforeBegin",
               ui=div(class="chat-bubbles",
                         div(class="bubble",
                          wellPanel(
                            p("Kindly select the discipline you are looking for", tags$br(),
                              selectInput("ed", "", choices = c ("A", "B", "C")))
},

if(ed!='')
           {
             insertUI(
               selector = "#message",
               where = "beforeBegin",
               ui=div(class="chat-bubbles",
                      div(class="bubble",style="text-align: right;",
                          p(tags$b(input$message, ed),
                          )
                      )))

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.