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.

Hide tab when get account = username

Featured Replies

I'm trying to hide a tab from all but the following users, Matt, Haley and Kristen.

I'm trying to use the hide object when- (Get ( AccountName ) ≠ "matt") or (Get ( AccountName ) ≠ "haley") or (Get ( AccountName ) ≠ "kristen")

but its not showing even to me at the moment. Any idea what I am doing wrong or a better way to go about this?

 

Thanks

 

Your expression is a tautology, because if the current user is Matt, then it isn't Haley - so at least one of the OR'ed statements will always be true. Try instead:

Get ( AccountName ) ≠ "matt"
and
Get ( AccountName ) ≠ "haley"
and
Get ( AccountName ) ≠ "kristen"

or (same thing):

not (
Get ( AccountName ) = "matt"
or
Get ( AccountName ) = "haley"
or
Get ( AccountName ) = "kristen"
)

or shortly:

IsEmpty ( FilterValues ( Get ( AccountName ) ; "matt¶haley¶kristen" ) )

 

---

Of course, a better solution would be to assign Matt, Haley and Kristen to a different privilege set, and base the test on that. Then you won't have to remember to modify your layout every time you make changes to the staff.

 

 

Edited by comment

Try

not(Get(AccountName) = "matt" or Get(AccountName) = "kristen" or Get(AccountName) = "haley")

Get(AccounName) ≠ "matt" is true whenever the account is anyone's but Matt's. Combined with the other statements, your calculation is always true; therefore you always hide the tab.

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.