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.

Script Triggers in FM11

Featured Replies

Hello,

I've been using EventScript plugin successfully for running a script when a field is set to a specific value (an on/off radio button field). Can FM 11 do this natively? I can't seem to find any mention of this functionality anywhere.

Thanks,

Alvise

Yes, FM11 can do this natively.

http://www.filemaker.com/help/html/script_trigg.38.4.html#1028556

  • Author

Thanks for your reply.

However, I don't want the script to be triggered when the value changes, I want it to trigger when the field is set to a SPECIFIC value. Is this possible?

No, you cannot have the script triggered only when a specific value is entered, but you can have the script do nothing if the specific value is not entered.

Make the script something like this:

If [myTable::myField = "special value"]

Show Custom Dialog ["Hey!"; "You entered a special value"]

End If

  • Author

This may work in the field I'm working with since there are only 2 possible choices, one of which triggers the script. However, it will not work, or rather it would need a work around to really do what I want. I'll stick with EventScript for now, since it is very easy to use and works very well. Thanks again.

  • Author

Sorry, I mean it would need a work around if I have more than 2 choices for the field.

However, it will not work, or rather it would need a work around to really do what I want.

Why ?

What do you really want ?

  • Author

The field is an "On/Off" switch: "0" = Off, "1" = On, by value list, radio button.

When turned "On" the field triggers a script. If the field is cleared (value deleted), or set to "0", the script should not trigger.

A triggered script can verify the field value and go on with next steps ONLY if the "On" is its content.

  • Author

Bellissimo! That's it! Grazie mille!

Alvise

  • Author

Sorry. Now I see. This is in fact usable! Furthermore the checking of the field value as the first step in the script should have been part of the script all along in order to avoid false triggers, even with the plugin solution I was using. Thanks Again!

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.