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

Form fields being reset to defaults on edit #1200

Open
GarethDalton opened this issue Mar 19, 2024 · 2 comments
Open

Form fields being reset to defaults on edit #1200

GarethDalton opened this issue Mar 19, 2024 · 2 comments

Comments

@GarethDalton
Copy link

GarethDalton commented Mar 19, 2024

When going back on a page in the application form to edit a field, some other fields (mostly drop down menus) are reset to default values while displaying the user's original answer, meaning that the review page still displays the correct answer, but the value submitted is the default answer instead.

@avishkar58
Copy link
Contributor

Hello @GarethDalton - thank you for raising this issue!
Could you please add some more reproduction steps, as I'm unable to reproduce this myself. Thanks

@GarethDalton
Copy link
Author

Hi @avishkar58 - After trying to reproduce the error I was getting it seams to be a slightly different problem to what I was first describing. It appears to be that the form answers are populated with the answers that are saved by advancing to the next page and not particularly the answers saved when clicking the "save for later" button at the bottom of the page (although the answers are indeed saved)

In short, to reproduce:
-[] fill in the application and get to the final (review) page
-[] go back to say page 4
-[] edit a field
-[] click "save for later"
-[] go back to a previous page, either using the "previous" button or the top progress bar
-[] go right forward to the review page
-[] the edited field now displays it's original value
-[] without going back to page 4, click submit on the review page
(NOTE:) if you go back to page 4 it still displays the original value and if you proceed forward from this page it re-saves this original value again even if no changes are made
-[] the confirmation email will show the updated value
-[] upon editing the application again, the updated value will be displayed on page 4 and the review page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants