Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Detect iPad rotation in FM Go

Featured Replies

Does anyone know if there is a way to detect iPad rotation with FM Go? I know I can anchor fields and stretch certain elements on layout resize to sort of smooth out the transition from vertical to horizontal but on certain occasions it would definately be nice to shift to a different layout specifically designed for one orientation or another.

Also, I've notices that FM Go is a wee bit sluggish on script execution on button elements. I'd say about 1 in every 3 or 4 times I try to run a script with a button it simply doesn't fire. I'll see the button visually depress so I know FM Go saw the button click but nada on script execution. I've tried on local files and hosted files and the performance seems the same. It's for this reason alone I don't really think FM Go is ready for production use. It can be frustrating at times. If users don't know what's supposed to happen when certain elements are clicked, when they don't fire, they'll never realize something WAS supposed to happen.

Any advice on either point?

Thanks!

If the layout has an object anchored with the width or height and you use the GetLayoutObjectAttribute function with the "width" or "height" parameter in a script it might be possible. I haven't tested it, but logically it should work... but you never know with FM...

  • 1 month later...

Does anyone know if there is a way to detect iPad rotation with FM Go? I know I can anchor fields and stretch certain elements on layout resize to sort of smooth out the transition from vertical to horizontal but on certain occasions it would definately be nice to shift to a different layout specifically designed for one orientation or another.

You can use "Get ( WindowContentWidth )" and "Get ( WindowContentHeight )" to detect the width and height of the screen on FM Go. From there you can determine which device you are on and it's orientation. Note: you'll have to put this into an OnTimer script to be constantly checking.

Also, I've notices that FM Go is a wee bit sluggish on script execution on button elements. I'd say about 1 in every 3 or 4 times I try to run a script with a button it simply doesn't fire. I'll see the button visually depress so I know FM Go saw the button click but nada on script execution. I've tried on local files and hosted files and the performance seems the same. It's for this reason alone I don't really think FM Go is ready for production use. It can be frustrating at times. If users don't know what's supposed to happen when certain elements are clicked, when they don't fire, they'll never realize something WAS supposed to happen.

It may be a problem with the pointer (your finger) moving before the button is released. If you press the button but then move your finger off of it before you lift it then the focus is moved off of the button. You may have to make your buttons bigger.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.