I'm looking for a function that allows you to go back one layout. Is there a standard feature or a possibility to calculate this?
If you use a script to save the name or the number of the layout as you leave it--either via navigation buttons that perform scripts or the OnLayoutExitTrigger, you can save that value in a field with global storage or a $$GlobalVariable.
Then you can use this with the Go To Layout script step by selecting either the "layout name by calculation" or the "layout number by calculation" options to go back to the previous layout.
Retrieving data ...