Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 4662 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hello people...

I have a database that has two levels of privileges..those who can view the edit and delete buttons and those who can not view the edit and delete buttons....

I would like those who are not privileged to edit and delete, once they login...these buttons should not be visible to them while those with the privileges can view the buttons...

Another issue is...I noticed that when people login..they can view the records previously entered which still remain in the fields..i wonder how to automatically have empty fields once a form is loaded....I tried script trigger on layout load that requests new records but this automatically adds empty records if a user doest wish to add records...

Thanks guys in advance

Posted

Unfortunately, in FM, you cannot easily "hide" layout objects such as buttons. You choices are:

1. to leave the buttons there, and FM will show the user a "your access priv does not allow" message.

2. create two layouts - one with buttons and one without and navigate to the proper layout by script.

3. Use what's called the "one row portal" technique to show/hide the buttons. This technique, I believe was first publicized by John Mark Osborne and so google for that. (www.databasepros.com and find for "Visibility")

4. Clever use of conditional formatting. however, there's no "hide," but you can dim, and you might be able to conditionally layer an object over your button. Haven't tried it (might still get a cursor when user hovers).

As for your second comment that users see the complete record. Well, that's how FM typically works. "Automatically" have empty fields" is only accomplished with a New Record. You could design a form based on global fields that are empty, and use this to capture data and script setting these values into a record. But, before going there (it'll become a dev burden, imho), why do you need a user to login and immediately see an "empty" form? Why not a list view with a New Record button or a Main Menu layout?

Posted

Thanks, David. Yes, there are probably a lot of tricks. If only we had a checkbox "Set Visibility" in the conditional format dialog!

Posted

Thanks bcooney for the assistance.....in the first comment about hiding buttons....Ideally users with now privileges to edit should not be able to see the edit button,david any idea how i could use this onrecordload script trigger because i believe with privileges set, users have to be identified at login

Posted

For instance...i have two users..one with privilege to view the edit button and another without...how would i identify them at login so that i can direct them to different layouts??

This topic is 4662 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.