Skip 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 how a user is logged in?

Featured Replies

  • Newbies

I know that you can create a privilege set called IWP and you can set that privilege set to only have access to certain scripts/layouts etc. Or you can use the fmiwp extended privileges.

What I am wondering is if there is a way to actually detect how a user is logged in, rather than using a privilege set. I want to simply put conditional statements in a script basically with the effect of: If user is logged in via IWP, do this, otherwise, do this. The reason I need to do this is because my boss only wants to have one set of scripts to maintain. In other words, we don't want to have 1 set of scripts for IWP and 1 set for regular login

Here is how we want it set up. IWP access will be the default access for everyone. People who need special features that aren't available with IWP (certain things don't work and/or are buggy with IWP, it's not perfect) will have a special privilege set to access the app via an FM client rather rather than IWP. However, any user that can access the app via a client should also be allowed to access via IWP. So all users can access via IWP, and certain users will also have access via the FM network.

You can do that with the "Get(ApplicationVersion)" function. It will return a string that starts with "Web" for users that come in through IWP and CWP.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.