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.

Can't get Get(SystemPlatform) to work when accessing db by WebDirect

Featured Replies

Happy holiday season, everybody.

I just can't get Get(SystemPlatform) to work in WebDirect: When a user logs into a database using WebDirect, I want to steer them to a web-formatted layouts so I have in a script:

If [Get(SystemPlatform) = 4]

  Go to Layout... blah blah blah

I also tried the same instruction with quotations marks surrounding the 4, but that doesn't work either.

 

Am I using the correct command or no? Because the same users can access the database via WebDirect or with FMP, I can't code scripts so they're taken to specific layouts based on their account names/types. (We're on v19.x in FileMaker Pro and Server.)

 

Cheers,

Rich

Edited by WF7A
Added bracket

That's what I use on one of my files.

Screen Shot 2021-12-06 at 2.23.05 PM.png

 

Make sure it's part of the file options OnFirstWindowOpen to run that script. 

  • Author

Thanks! I'll give it a shot tomorrow.

  • Author

Well, it sort of works now: When I access the db--using WebDirect--with an iPad, for some reason it doesn't recognize Get ( SystemPlatform ) =3 (iOS / iPad); the script recognizes 1 (Mac), -2 (Windows), and 4 (WebDirect), so is there a tweak I need to know?

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.