Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ask Confirmation Before Navigating Away from Questions Page When State is Dirty #9804

Closed
aravindm4 opened this issue Jan 7, 2025 · 0 comments · Fixed by #9838
Closed

Ask Confirmation Before Navigating Away from Questions Page When State is Dirty #9804

aravindm4 opened this issue Jan 7, 2025 · 0 comments · Fixed by #9838
Assignees

Comments

@aravindm4
Copy link

When clicking the “Back” button while forms/questionnaires, the application immediately navigates away, even if there are unsaved changes (dirty state). This can result in users unintentionally losing their work. To improve user experience and prevent data loss, the system should ask for confirmation before navigating away from the page if the form state is dirty.

Expected Behavior
1. When a a user click back button while filling a form , a confirmation dialog should appear if they attempt to navigate away
3. The dialog should provide the following options to stay on the page and also option to leave.

Step o reproduce

  • While filling a questionnaire, click on back button.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants