shinyUI(fluidPage( # Open UI
"survey demo", # Title
###### Questions ######
selectInput(inputId = "Score1", # What we are calling the object
label = "The Question 1", # Question
choices = c("Disagree Strongly" = 1, "Disagree" = 2, "Disagree Somewhat " = 3, # Responses
"Neither Agree nor Disagree" = 4, "Agree Somewhat" = 5, "Agree" = 6,
"Agree Strongly" = 7)
),
selectInput(inputId = "Score2", # What we are calling the object
label = "The Question 1", # Question
choices = c("Disagree Strongly" = 1, "Disagree" = 2, "Disagree Somewhat " = 3, # Responses
"Neither Agree nor Disagree" = 4, "Agree Somewhat" = 5, "Agree" = 6,
"Agree Strongly" = 7)
),
# Submitbutton
actionButton(inputId = "Action", label = "Submit"), # Create submit action button
###### Results display output ######
tableOutput(table), # Output the data for display
textOutput(Datadisplay), # Display the summary of the data
downloadButton(downloadData, "Download Data") # Create a download button
)) # Close Shiny UI and fluid page