cds-snc / cds-snc/platform-forms-client
Order of elements in saved copy of JSON form file
- Dominant language
- TypeScript
- Stars
- 46
- Forks
- 16
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 91
Description
## Description
When updating the templates for GC Forms had to modify content and noticed that the order in JSON does not match form output when any sort of conditions are applied?
- end comes before start
- privacy statement at end
## Steps to reproduce
1. Go to GC Forms
2. Create a basic one-page linear form, no logic
3. Create a form with display logic / dynamic field
3. Save a copy of each form file
4. Compare
## Details
- **Browser**: Chrome
- **Operating system**: Mac
- **Environment**: Production
- **Language**: English/French
- **Viewport**: Desktop
## Expected behaviour
Matching order or structure
## Screenshots or videos

Contributor guide
Research direction
Start by reproducing the issue in GC Forms with a basic linear form and a form using display logic or a dynamic field, then compare their saved copies. Trace the save-copy flow to determine where element order is produced; done means the JSON order or structure matches the form output, including the start/end fields and privacy statement.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nextjs, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100