Good morning. I have a question related to actions using javascript and then using a back button on a submit page. I have a javascript function that allows a user to add additional input fields on a web page. So basically a user has one line that they can add an item and then if they need to add additional items, they hit a button and a new input line shows up. Once they do this up to 5 times, these items will be entered into a database with an action page. All of this works as designed. The submit page does some validating, and asks additional questions so I run the forms data to the submit page. But what I noticed is that if the user selects the back button, the added input fields do not show up on the previous page. Is there a way to make those added input forms stay visible when selecting the back button on the page?
usually a page will load the data from DB on page load
I don't know how your page work but if the data is saved in DB you will need a way to force a page reload to get the newly data.
There is a simple way to do it using Javascript
Open in new window
if the data is not save then you need a way to temporary saved the data in localstorage or similar way.