cds-snc / cds-snc/platform-forms-client

Only allow to set up show-hide for a following question or a subsequent page

Open
#4,115 1 comment 0 reactions 0 assignees View on GitHub
app bug enhancement
Dominant language
TypeScript
Stars
46
Forks
16
Avg merge
1d 8h
Merged PRs (30d)
85

Description

## Description
Currently it's possible to show a preceding question.
For example: Question 4 can show/hide Question 1
This is a risk to break the experience.

## Steps to reproduce
1. Go to GC Forms
2. Add a short answer Q1
3. Add a radio button Q2
4. Add options
5. Add a rule that links the option from Q2 to Q1

## Details
- **Browser**: Edge
- **Operating system**: Mac
- **Environment**: Staging
- **Language**: Français
- **Viewport**: Tablet

## Expected behaviour
Some constraints that limit the possibility of broken experience
Related #3888

## Screenshots or videos

![preview](https://github.com/user-attachments/assets/56d16c31-7481-4d16-b850-a4f21797470b)
![Edit](https://github.com/user-attachments/assets/138ebb78-640e-4775-b773-546447d44957)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.