Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

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

Posted

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.

Posted

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

Posted

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.

Posted

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?

Posted

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.

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