Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to trigger script on field update?

Featured Replies

  • Newbies

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!

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}

  • Author
  • Newbies

I of course should have mentioned this was on OS X.

-Matt

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

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...

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

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.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.