project-icp / bee-pollinator-app

The web application front end for the ICP Pollinator Decision Support Tool 🐝
Apache License 2.0
6 stars 1 forks source link

Update survey questions to be conditional where applicable #479

Closed fungjj92 closed 5 years ago

fungjj92 commented 5 years ago

Overview

The survey questions spreadsheet specifies questions that should appear conditionally based on answers to preceding questions. This PR should capture the rest of the questions that should be conditional but weren't yet. Questions a user had second thoughts on and subsequently hides have their answers erased so we avoid saving stale / irrelevant data.

Connects #477

Demo

November:

screen shot 2019-02-15 at 8 53 12 am screen shot 2019-02-15 at 8 53 18 am

User:

screen shot 2019-02-15 at 9 07 34 am screen shot 2019-02-15 at 9 07 54 am

Testing Instructions

Pull down branch and ./scripts/beekeepers.sh start. Check out the user survey and november surveys. Try out the conditional questions. If you input answers but then change your mind on the parent input, the conditional question answers should be erased on change.

rajadain commented 5 years ago

Sorry for the delay, taking a look now.

fungjj92 commented 5 years ago

Thanks for review ~