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

Distinct names for end user html form files saved "in progress" vs. "once submitted"

Open
#5,383 1 comment 0 reactions 0 assignees View on GitHub
end users enhancement
Dominant language
TypeScript
Stars
46
Forks
16
Avg merge
1d 9h
Merged PRs (30d)
91

Description

## Description
When going through the flow for "save and resume", I kept being asked if I wanted to overwrite the file I'd already saved.

ex: `form-title-formID.html`

We might consider a different naming convention for files while in progress versus once submitted to help users differentiate and keep the right ones at a glance.

## Steps to reproduce
1. Go to a published form with the "Save answers" setting ON
2. Fill in some fields and "Save to device"
3. Close the tab and reupload your answers
4. Continue through to review page and submit
5. Download a copy of answers submitted
6. See the prompt to overwrite the file

## Details
- **Browser**: Chrome
- **Operating system**: Mac
- **Environment**: Production
- **Language**: English/French
- **Viewport**: Desktop
- **Output**: https://forms-formulaires.alpha.canada.ca/en/id/cm98mduls000yyd01jwibk2bn

## Expected behaviour
Different status leading to different form file naming convention?

## Screenshots or videos

Screenshot 2025-04-08 at 12.12.14 PM.png

Screenshot 2025-04-08 at 12.12.35 PM.png

Screenshot 2025-04-08 at 12.12.40 PM.png

Contributor guide

Open the contributing guide

Research direction

Start by tracing the save-and-resume and submitted-answer download flows described in the reproduction steps, focusing on where the HTML filename is selected. Reproduce the overwrite prompt in the linked production form, then verify that in-progress and submitted files receive distinct names without prompting to overwrite the other status.

Written by the indexing model from the issue text.

Assessment

Tech stack
nextjs, typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.