Go to layout [original] Takes you back to the layout that was current at the time the script started up. So it cannot be used in your current design as the "original layout" won't refer to the original layout from the previous script.
But you can have script #1 save the name or number of the original layout in a global field or variable. Then your second script can use one of the two "by calculation" options with such a field or variable to return to the original layout.
Sorry, I am new to this....can you provide me an example of script #1? I am unable to find any examples.
Set Variable [$$Layout ; value: Get ( LayoutName ) ]
Go to Layout ["specify the layout you want to go to here" (...
Sorry, I am not grasping this at all....so would I put this on a button with "Set Script Trigger"....I am completely lost. Not sure where to place this.
You would specify "perform script" in button setup. The above script would be the script your button performs with that "perform script" button option. You'd use Manage | Scripts to create the script.
Ok, the image is of the layout that I will be leaving (via a button and script). This takes me to the correct layout "Hitting Skills - Need Work | Ipad", but when I try to use a button on that page to "Goto Layout - Original layout" it does nothing...I would expect it to take me back to where I just came from??
As I said in my first response. You cannot use Go to layout [original layout] in this context. That option only returns you to the layout that you were on when the script started up. You are already on the "Hitting SKills..." layout so go to layout [original layout] takes you to the layout you are already on.
Your second script needs to be:
Go to Layout [$$Layout]
where you select the "layout name by calculation option in order to be able to enter the name of the variable as a way to specify the layout name.