Link to home
Start Free TrialLog in
Avatar of Hiro 714
Hiro 714

asked on

Filemaker Question: how to set a file launching script decided by iphone vs laptop

I need an advice for filemaker file opening script.
I would like to set a launching script when opening a filemaker file and decide a layout, depends on the device type, like laptop vs smartphone.
ASKER CERTIFIED SOLUTION
Avatar of Will Loving
Will Loving
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Hiro 714
Hiro 714

ASKER

Thank you, Will Loving!
One other note: you don't actually need separate startup scripts for each device or platform. Instead of what I put above you could also just put the steps in that you want it to do when that platform is detected.

If [ Get(Device) = 3 ]
   Go to Layout [ "Home - iPad" ]
Else If [ Get(Device) = 4 ]
   Go to Layout [ "Home - iPhone" ]
Else
   Go to Layout [ "Home" ]
End If