Baobab icon indicating copy to clipboard operation
Baobab copied to clipboard

Form fields being reset to defaults on edit

Open GarethDalton opened this issue 1 year ago • 2 comments

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.

GarethDalton avatar Mar 19 '24 14:03 GarethDalton

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

avishkar58 avatar Mar 19 '24 18:03 avishkar58

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

GarethDalton avatar Mar 20 '24 12:03 GarethDalton