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.

How do I abort a script that takes a user to a related file that he does not have ...

Featured Replies

I have a navigation file that shows users how to go to related files by pressing a button that executes a script that takes them to a related file. I want to ammend the script to see first if they have access to any of the layouts in the file, and then, if not, abort the script and show them a message .

I guess your question is how to do this, I missed the "?". wink.gif" border="0

You can test for Status(CurrentGroup), this should tell you if the user has access to a particular layout (as defined by their group).

-bd

  • Author

bd,

Thanks for the help, that worked fine for all of the enduser groups defined, but I have found one problem. And the question is as follows: When I logon with a password that allows access to the entire file, the script returns my message that I don't have access. How can this be?

The master password belongs to all groups. When you log in with the master password, a test for any group will return true. You should make a group to which only the master password belongs and test for this group first.

Have a look at the value returned by Status(CurrentGroups).

quote:

Originally posted by Thom:

The master password belongs to all groups. When you log in with the master password, a test for any group will return true. You should make a group to which only the master password belongs and test for this group first.

Have a look at the value returned by Status(CurrentGroups).

One of the calcs I use most often for this sort of thing is

PatternCount (Status(CurrentGroups), "<GroupName>") = 1

The 1 could be a 0, depending on whether you are checking to see if the user is in a group or isn't.

  • Author

Thanks, That did the trick!

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.