daattali / daattali/shinyforms

Hide question based on conditional logic

Open
#30 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
R
Stars
166
Forks
65
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the issue's two-question car example and inspect the questionnaire implementation to determine where question visibility is controlled. Done means a later question can be shown or hidden based on an earlier answer, with the conditional behavior represented in the form workflow.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.