Hi,
Apex version - 22.1 and Oracle database is at 19C.
Requirement - We have implementing Summary list design - https://design-system.service.gov.uk/components/summary-list/
Flow causing problem -
When you click on Change link of any field, you will be navigated to a page of that field to edit the item value, this page has Back link and Continue button.
- If you edit the value and you hit the Continue button and if it's a valid value then you will be brought back to Summary list page and filed will start to show edited value.
- If you edit the field and hit Continue button and the value is invalid then the validation error message will be shown and then you choose to go back to summary list without editing the field and you use Back link for that.
Continue button is Submit button and Back link just navigate you back to summary list.
Actual Problem -
When we hit the Continue button and validation error is thrown because of invalid value we loose the Original value.(Because On submit Apex stores edited value in session state that is invalid value.) And when user click Back link at this stage summary page starts to show edited invalid value which was stored in session.
Expected behaviour - We want to restore the original value on click of Back link to display it on Summary list page.
I appreciate your time you read till this and will need your help to resolve this.
Thanks in advance!!!