November 9, 201114 yr Summary: I'm trying to create a pop-up menu (F) that has about 10 different choices, and when the user clicks on one of these choices a script is performed. I'm trying to connect filemaker with Metrofax and I already have the right script to send the file through my email client, I just don't know how to connect it to a menu item. I have attached a sample file. When the user clicks the F a pop up menu appears with 3 choices, once the user selects one of those choice I'd like it to perform a certain email script. Any ideas? This is really urgent and all help is appreciated. Thanks MattFMPHELP.fp7.zip
November 9, 201114 yr Why not use custom menus for this? It sounds as though your interface is a field on a layout with a value list and you want the selection of a value to run a script. This can be done with script triggers or just a "do" button that looks at the value in the field and acts accordingly.
November 10, 201114 yr Author consultant, I took a look at your program, I see how the script is performed when one of the menu items is chosen but how do you specify a different script for each menu item? Vaughan, I'd love to try a custom menu, do you have an example of this "do" button? Thanks again, Matt
November 10, 201114 yr I see how the script is performed when one of the menu items is chosen but how do you specify a different script for each menu item? You can't do exactly that, but you can have the one triggered script call another script - with the field contents determining which one. Or just branch out the one script to do different things in each case.
November 10, 201114 yr Author Thanks Rick, I only have Filemaker Pro. I'm really struggling to understand how to get this script to do what I need it to do. I've been trying to do an "on object modify" however that only triggers one script because I can't specify any of the menu options or tie them to a specific script. Any ideas?
November 11, 201114 yr Thanks Rick, I only have Filemaker Pro. I'm really struggling to understand how to get this script to do what I need it to do. I've been trying to do an "on object modify" however that only triggers one script because I can't specify any of the menu options or tie them to a specific script. Any ideas? You can't do exactly that, but you can have the one triggered script call another script - with the field contents determining which one. Or just branch out the one script to do different things in each case. The trigger runs one script that has conditional IF statements in it that run other scripts based on the value of the field. That script would be something like: If [ field = "apple" ] Perform Script [ Script to select apples" ] Else If [ field = "pear" ] Perform Script [ Script to select pears" ] Else If [ field = "oranges" ] Perform Script [ Script to select oranges" ] ... End If As you can see, the choices need to be pre-determined. Adding values or changing them will require changing the script.
Create an account or sign in to comment