cds-snc / report-a-cybercrime

Report a computer crime or scam / Signaler un crime informatique ou une fraude
https://report-a-scam.cds-snc.ca
MIT License
29 stars 14 forks source link

Warning When Navigating Away From Page #2345

Closed justinr86 closed 4 years ago

justinr86 commented 4 years ago

Suggestion / question

While filling out a form, if the user uses the back button of the browser or the BackButton component to navigate away from the page their current entries will be lost. It might be a good idea to display a warning before leaving the page. This would be especially useful on the What Happened page where a user could have entered multiple paragraphs. To display this message we could use a modal which was introduced when the Evidence form was refactored.

Use case

When a user spends time entering information about their incident, if they navigate way from the page this information will be lost. This could cause frustration or confusion and will likely lead to user drop off.