OffTheDeepEnd.com Posted December 28, 2004 Posted December 28, 2004 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.
-Queue- Posted December 29, 2004 Posted December 29, 2004 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.
Partha Posted December 29, 2004 Posted December 29, 2004 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
OffTheDeepEnd.com Posted December 29, 2004 Author Posted December 29, 2004 I think that was almost too easy... I guess just too much cold medicine yesterday. Thanks everyone!
Recommended Posts
This topic is 7615 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 accountSign in
Already have an account? Sign in here.
Sign In Now