Trigger | On First Window Open #This script is performed OnFirstWindowOpen trigger. Go to File Options > Script Triggers #Choose which is the current running platform and go to the appropriate Layout #1 = Mac #2 = Windows #3 = iPad #4 = iPhone #5 = Android If [ Get ( Device ) = 1 or Get ( Device ) = 2 ] Go to Layout [ “Contact Details | Desktop” ] Else If [ Get ( Device ) = 3 ] Go to Layout [ “Contact Details | Tablet” ] Else If [ Get ( Device ) = 4 ] Go to Layout [ “Contact Details | Phone” ] Else If [ Get ( Device ) = 5 ] If [ Get ( WindowWidth ) + Get ( WindowHeight ) > 1042 ] Go to Layout [ “Contact Details | Tablet” ] Else Go to Layout [ “Contact Details | Phone” ] End If End If #Set Zoom Level to 100% and lock further changes Set Zoom Level [ Lock; 100% ] #If no records found If [ Get ( FoundCount ) = 0 ] New Record/Request End If
September 25, 2020 22:57:59
05_02.fmp12 - Trigger | On First Window Open -1-