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

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

Recommended Posts

  • Newbies
Posted

Is there a way to trigger a script to run as soon as a user makes a selection in a field formatted as a pop-up menu? I know in access there's a way to set up a field to run a particular action any time the data in it is updated... is there a similar Filemaker function?

Thanks!

Posted

On Windows, yes. Format the field as a pop-up menu and disallow access to it. Then set it as a button attached to a script to

Go to Field [yourfield]

Pause/Resume Script [0:00:01]

{continue with desired steps once selection is made}

Posted

It's no different in OS X

Set the field as a button and attach a script

I would probably write it with a validator,

SetField [Global = yourfield]

Go to Field [yourfield]

Loop

Pause/Resume Script [0:00:01]

Exit Loop If [yourfield does not equal Global]

End Loop

Phil

Posted

It may be different in that a list should be used instead of a menu. Also, the loop is required, whereas a Pause is sufficient on Windows, since FM is frozen until a selection is made, the layout is clicked, or the user navigates to a different program.

  • 2 weeks later...
Posted

i don't understand what is involved in making the popup menu selection in a field & having the field formatted as a button. are there two objects involved that are layered together?

i use that with two fields on top of each other with entry into the top field not allowed in order to select the rear field.

but in this case with a button involved i don't know what to do. what am i missing?

thanks

Posted

There are various plugins that accomplish this also. It doesn't seem that eepmatt has mentioned what version of Filemaker they are using. There is a free plugin with excellent examples available for FM7, look on Versiontracker for EventScript. He has done some clever things with privilege sets that allow you to trigger a script upon ENTERING a field, as well as upon exit.

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