< Back

Document Subject: Hide Buttons / Actions / Fields from General Users
Hint Short Cut: Add this to your code & documentation to help you find this page.
http://#AFRR-73QJJY or http://A555F9/nn.nsf/ByAlias/AFRR-73QJJY

Sometimes it can be useful to hide fields and actions such as Repair actions or agents from users.




One easy frmula is

Hide if:

@UserAccess(@DbName; [AccessLevel])<5

 

This hides data from anyone with less than designer access.

 

If designers have designer access only and you don't want Admin to see the function try:

@UserAccess(@DbName; [AccessLevel])!=5

 

Another way, which I prefer is to have a "Developer" role in the database.

Assign this to developers and problem users, so you can see hidden fields etc.

Hide if:

@IsNotmember("[Developer]";@userroles)

To avoid confudion, start all actions or agents with "Dev" or "Admin" and put hidden field in pink or red, so it is easy to maintenance which is what.