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.

Get (device) for choosing iPhone layout not working

Featured Replies

I want to use "get (device)" to switch to a layout customized for iphone. However, it doesn't seem to be working. At the start of a script, I'm setting a variable identifying the OS using "get (device)." At the end of the script I have an if statement that if the variable = 4, it should go to the iphone layout. The script works fine if I set it up to recognize the PC ("2") but it's not working for my iPhone 4S running iOS 7.0.6. Any ideas?

Seeing the actual script might help.

  • Author

Thanks for your response; attached is a screenshot of the script. Appreciate any advice.post-106098-0-19036900-1396837855_thumb.

Why don't you try something like:

...
If [ $device = 4 ]
  Go to Layout [ ... ]
Else
  Show Custom Dialog [ $device ]
End If

That should give you a clue regarding where it breaks.

  • Author

Thank you--I did that and it's returning "?" when I'm using my iPhone.

And what does

Show Custom Dialog [ Get ( Device ) ]

show?

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.