Refilling a form with saved user selection
In my application I have a form that initially has default values. The user can choose other selections in the form. The user can also save the selections into localStorage by clicking the Save button and using the CacheData() function. My application has an option to navigate to another page once the form selections are made. Upon leaving the initial page, the form data is saved once again using CahceData(), incase the user made any changes without saving before navigating. From the second page, upon returning to the original page, the application reloads the form with the function dataLoad() with the selections saved.