Implement Preview Before Submit Functionality
I have an app that allows users to submit reviews. One functionality I am trying to implement and seems inefficient and very buggy is using storage variables to allow user to preview their submission before submitting. As you see in the screen below, user enters some data, previews it and at that point either submits or edits more. This has number of issues
1) Since review window (screen 2) has no "submit service" in it, I cannot submit the data all the bidding exist on the data entry screen, so I cannot call the button submit which means I have to take the user back to previous window and show another button - SUBMIT, to finish the submission. Too much clicking going on and I would prefer to have the user click a button on the review window and have everything submitted.
2) With storage variable, after the user has submitted data, if they click "Preview Before Submit" button and the text boxes are all empty in screen 2, the review button display the old values. I have tried different code to clear the values but nothing I have also tried session and window variable
codelocalStorage.removeItem("DisplayName");
localStorage.clear('DisplayName');
/code
3) is there an easy way of implementing this functionality. So far it is very messy, full of bugs and hard to predict the behavior. I am not using a popup or dialogues.