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%