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.

CWP Custom Privileges

Featured Replies

Is it true that custom privileges do not work in PHP CWP? I read that somewhere, but I couldn't find any more information about it. I have several users with a custom privilege set in my database, and I haven't been able to get it to work with my web pages, so I thought I'd ask the experts.

Thanks,

-Timothy Moser

  • Author

Hmm… I just did the experimenting I should have done before posting this, and I figured a few things out.

First, the idea that custom privileges do not work in PHP CWP is a myth. They work perfectly as far as I have been able to tell.

In my situation, I had a bunch of privileges calculated based on a global variable ($$User), which is set in a FileMaker startup script as Get(AccountName). Apparently startup scripts do not run automatically in PHP CWP (which makes sense), so I added running the script to the code. It still didn't work. I guess it must have something to do with the FileMaker variable. But at this point I think all I have to do is switch $$User out for Get(AccountName) in all my custom privileges.

More later…

Edited by Guest

  • Author

It seems to work just fine now.

Great, I just had a whole discussion with myself on a public forum. But at least now a Google search for "cwp php custom privileges" points to a relevant spot. I guess it's nice to help others while I help myself…

-Timothy Moser the Self-Conscious

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.