If a form is filled out and the next button is clicked but the user realized that there is a error and clicks on a previous button , how to do so When clicking on the previous button I returned the form that had been previously filled and that the fields of that form appear filled with the last record that had been entered, and thus avoid having to go back to fill out the form completely and only have to correct what is required.
CONTROLLER
%pre%
MODEL
%pre%
JavaScript FUNCTION FOR THE 'PREVIOUS' BUTTON
%pre%
______ azszpr128929 ___
Use Js or Jquery save the values in session Storage, when you send the form you save that information, if you reload the page in the JS, consult if there is such an information, if so, you load it in each of the corresponding fields.
___