1 of 1 people found this helpful
I can't recreate the issue - the global variable works for me.
sorry ... I recreated by using the script trigger. Here's how I fixed it: the go to last layout script needs to store the $$lastLayoutNumber in a local variable, then Go to Layout by number - local variable. Apparently, Go to Layout fires the OnLayoutExit action before it evaluates $$lastLayoutNumber.
I did check and it was set to number.
also I did have this button working but I had it set to a global filed and I am trying to clean up the solution so I set it to a global variable