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.

Another Custom privilege-view field by user type

Featured Replies

I'm trying to enable users to view fields according to their values. I don't want to make the field inaccessible altogether.

something more elegant than this untested calc field:

If ( Left ( g.CurrentUser 6="doctor"), "Blood Test shows"&bloodtestresult , "CONFIDENTIAL" )

I'm sure this has been covered before, if so please just indicate previous post.

Steve

Its not actually possible to "hide" the field, however, if you create a separate field, and put a calculation in it that does:


If( Left (g.CurrentUser; 6) = "doctor"; "Blood Test shows " & bloodtestresult; "CONFIDENTIAL")

Then just remove the bloodtestresult field from your layout and insert the new one with the calculation, that should work the way you want it to.

Why not create a privilege set for doctors, and assign it to all doctors' accounts?

  • Author

Sorry, my fault for not making myself clear:

The calc field answer I got was the same as my suggestion of what I know how to do anyway;

comment's idea of doctor's priveleges was more of what I am trying not to do.

I'll try to be clearer:

In my solution of few layouts but many users, each user has the impression that the layout they see is their own (own name, colour,department).

I cannot define privileges by layouts because there would be too many layouts.

But I still need to hide certain field values from some users. Neither forms of permission will do the trick. I was thinking of something more elegant than a calc field.

(Oh bugger, this is starting to remind me of the old "show different fields on the same layout" wish-list item).

Steve

You can define access privileges on FIELD basis - irregardless of layout.

You can also hide the confidential field/s from unauthorized users, using the visibility trick.

The attached file demonstrates both. Examine the Personnel privilege set, under Records (custom privileges) > Table Name ("Data") > Field Access.

DoctorsOnly.fp7.zip

Edited by Guest
Added a welcome message to the file

Just a cautionary note. Mostof the visibility tricks will fail if the user can go into Find mode.

Steven

In my file you are not allowed to go into Find mode. And you cannot see data in Find mode, anyway. But it is a good point to keep in mind in general.

If you are using the portal visibility trick, going into Find mode will expose what is hidden behind the portal.

Steven

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.