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 7338 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I know in HTML i can create a script that when a user selects a drop down list, it takes that user to a certain page. Well, is it possible in Filemaker for a user to have a list of options in a value list assigned to a field, i.e. New Record, Delete Record, Duplicate Record... so that when a user selects that option, it performs that script? I am trying to minimize buttons and that seemed to be the best thing to do.

Posted

On Windows it's easy. Just format a menu as a button attached to the script

Go to Field [yourfield]

Pause/Resume Script [0:00:00]

If [yourfield = "New Record"]

Perform Script [New Record]

Else

If [yourfield = "Delete Record"]

Perform Script [Delete Record]

Else

.

.

.

End If

End If

Make sure the field is formatted as a menu and not a list, or else it will not work.

Posted

Remember to create the field as a Global so that it only occurs once for the file.

Also, if you are using spaces or "-" before the menu value, ensure that the data you are checking against is exact.

e.g., if your field value is " - Delete Record", then the calc would be:

If(yourfield = " - Delete Record").

Not necessary, but i've always found it useful to visually segregate, so my menu would be:

RECORDS

---------

- Create Record

- Delete Record

This allows me to include multiple function areas in one menu without the user getting confused

This topic is 7338 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.