daattali / shinyforms

📝 Easily create questionnaire-type forms with Shiny
Other
164 stars 65 forks source link

Hide question based on conditional logic #30

Open wolass opened 6 years ago

wolass commented 6 years ago

In case of large questionnaires, some questions may only be relevant if an answer to a previous question wa positive:

  1. Do you own a car? YES / NO <- radiobuttons question.
  2. What Type of Car is this <- radibuttons : Truck, Sedan , Bus.

Asking the question 2 is meaningless if the answer to question 1. was "NO".

To prevent asking unnecessary questions it would be crucial to implement some kind of conditional logic into these questions, so that only the relevant ones show up.

daattali commented 6 years ago

This is a good idea. It is not currently supported in the initial draft version