Hi In your script set $$prevlayout before updating $$layout with the new layout name. The way you have it now $$prevlayout gets the new layout name.
You may need a refresh to see the new values on the screen. Bruce Herbach Herbach Consulting Sent from my mobile device... Please excuse typos. On Sep 18, 2013, at 12:35 PM, Nick Adams <[email protected]> wrote: > Hi, > > I would like to use a button to return to the previous layout. > > My scripts are (on each layout): > Layout Trigger: on layout enter, set variable $$layout name:value: get > (layout name) > Layout Trigger: on layout exit, set variable: $$prevLayout: $$layoutName; > value $$layoutName > > My Button Script: > Go to Layout (name by calculation) [$$prevLayout] > Adjust window [resize to fit] > exit script > > My Startup script sets both of these variables to "" > > I have inserted a merge field for both variables and the variable are being > set correctly but the script does not work, it stays in the same layout. > The Script Debugger does not return any errors. > > Would someone please tell me what I am doing wrong? > > I am using FMP11 Advanced on a Mac running OS 10.5.4 > I have 256 MB allotted for FMP cacheNick Adams > > Thanks, > > Nick
