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.

if PrivilegeSetName - help

Featured Replies

I am trying to do the following to direct the user to an appropriate layout.

If [Get ( PrivilegeSetName ) = "Guest"]

Go to layout ["ONE"]

Else

Go to layout ["TWO"]

End If

It is not grabbing the privilege set name however. It is just blowing down to the else statement. Any suggestions?

thanks,

mike

If you're using Advanced you can use the Data Viewer to see what that is actually evaluating to. If not, you can create a global calc that does the same thing.

Make sure that you're logged into the right account to test privelage sets.

  • Author

Thanks.

I am using advanced, and opened the data viewer. When I put in Get ( PrivilegeSetName) the Value returned is "Guest", which is the answer I was looking for. So, back to the if statement above? I am stumped, why is it not working?

is there a better way to do this?

Edited by Guest

Check to see if the script is set to run with full access privileges. If it is, the Get ( PrivilegeSetName ) function always returns "[Full Access]" because while the script is running, that's who is running it.

Also check whether the function should be Get ( PrivilegeSetName ) = "[Guest]" you are useing the built-in guest account.

  • Author

I don't know what it was. I re-wrote it a couple of times, debugged, etc, and after about the 7th try it started to work. User error I'm sure, but not sure what I did different.

thanks for the help

You must have changed your privilege set name? When I do Get(PrivilegeSetName) I see "[Read-only Access]". Maybe you want Get(AccountName) instead?

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.