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.

Featured Replies

Hello there

Let

First of all passwords are not directly tied to field or layout access. Passwords control access to "Groups" and "Groups" have privileges to access fields and layouts.

Passwords <--> Groups <--> Layouts, Fields

To accomplish what you wish, you will need to create a group for "no password" which is not allowed access to the "Staff" layout and to a global number field let's call gAccessTest.

As part of your Go to Layout script (you'll need one) for the "Staff" layout, you will need the following test.

Set Field [gAccessTest, "1"]

If [gAccessTest = 1]

Go To Layout ["Staff"]

Else

Show Message ["You must enter with a password to access this information", "OK"]

End If

What this script segment does is try to write a 1 to gAcessTest. If the user's password doesn't allow this, the test for gAccessTest = 1 fails and the user is shown a dialog box instead of being sent to the Staff layout and seeing "Access Denied". -bd

Or you could just put a script step that uses the "Status(CurrentGroup)" function to determine if a "Show Message" is necessary.

The "Groups" format is one of FMP's kludgier features, and the "Status(CurrentGroup)" function is even more so, because you have to list EVERY combination of possible groups, and it's a pain, but so far it's the simplest method.

HTH,

Dan

Status(Current Group) is a better idea. I was having a FM flashback... wink.gif -bd

You mean like "Anybody who can remember FileMaker II wasn't really there." ;-)

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.