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.

Automatic Scripts

Featured Replies

Is there a way to cause a script to run based upon some pre-determined value in a field.

What I would like is if the field value = (X), run script (X)

and if the field value = (Y), run script (Y).

If the field value = something other than (X) or (Y), do nothing.

Is this do-able? [

Hello Jarvis,

What you are describing is not (at least not yet) a native feature of FileMaker as such.

There are a few ways to simulate this kind of functionality within certain limits, and there are a number of demo files around that show variations on ways it can be done. One such is the demo available at my web site at:

http://www.nightwing.com.au/FileMaker/demos3.html#d7

You'll find other demos with related approaches (variations on the same general theme) on numerous other sites around the web.

Beyond that, much more flexible ways to trigger a script on exiting or on modifying a field can be implemented with the addition of any of a number of third party plug-ins. Several of the better known of these are Troi Activator, SCRIPTit and oAzium Events:

Troi Activator:

http://www.troi.com/software/activatorplugin.html

oAzium Events:

http://wmotion.com/events.html

Comm-Unity Networking Systems:

http://scriptit.cnsplug-ins.com/

There are various others, but the above three are well known well supported, are available as free demo downloads and are fully x-plat. Each of them offers other features as well as a range of script triggering options, including the kind of thing you're currently looking for. cool.gif

Isn't this enough?

If [state = "CA"]

Perform Script ["Compute CA Tax and Total"]

Else

Perform Script ["Compute Total"]

End If

Copyright

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.