title: Create a questionnaire with R Shiny
body: <p>I am trying to learn how to create a questionnaire with Shiny. I need that each question is on a new page. For example, when the user answers to a question, press "Next" button and a new page loads with another question. Any idea on how this is done? Because I want to simplify my code, I created a module for each question. The <code>ui</code> would look like this:</p>
  
  <pre><code>library(shiny)
  
  fluidPage(
    div(class = 'container',
        div(class = 'col-sm-2'),
        div(class = 'col-sm-8',
            h1("Welcome!"),
            p("Lorem ipsum dolor sit amet, consectetur adipiscing elit. "),
            br(),
            actionButton("page1", "Start")
            )),
    source("questions/question1.R", local = TRUE)$value,
    source("questions/question2.R", local = TRUE)$value   
  )
  </code></pre>
  
  <p>Module Question 1:</p>
  
  <pre><code>div(class = 'container',
      div(class = 'col-sm-2'),
      div(class = 'col-sm-8',
          radioButtons("question1", "Please select a number: ", choices = c(10,20,30)),
          actionButton("page3", "Next"),
          br()
      )
  )
  </code></pre>
  
  <p>Module Question 2:</p>
  
  <pre><code>div(class = 'container',
      div(class = 'col-sm-2'),
      div(class = 'col-sm-8',
          radioButtons("question2", "Please select a color: ", choices = c("Blue", "Orange", "Red")),
          actionButton("page3", "Next"),
          br()
      )
  )
  </code></pre>
  
  <p>... and the server.R:</p>
  
  <pre><code>server &lt;- function(input, output, session) {
  
  }
  </code></pre>
  
  <p>So, when the user press "Start" should go to page 1 and so on... Thanks!</p>