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

Preventing User from progressing to next tab object

Featured Replies

Hello, this problem is driving me up the wall.  I have 3 fields that all have onObjectEnter and onObjectExit scriptTriggers enabled on them.  I am validating the contents of each field in accordance with other complex rules and I want to prevent a user from progressing to the next tab object if a validation fails.  The problem that I am running into is that no matter how I terminate the OnObjectExit script on the current field, filemaker ALWAYS progresses to the next field after the completion of the script.  I'm trying to avoid having to add additional scripting to check what field the user has come from and wether the previous validation has passed (obviously this is doable but in my mind adds needless complexity) and I'm wondering if I've missed an obvious way to prevent Filemaker from progressing to the next tab object.

 

So far I've tried:

Halting the Script (Progresses to next tab object)

Going to a Specific Object by Name (Still progresses to next tab object)

Setting Field by Name with Calculated Name (Again, progresses to next tab object)

Setting Field by Name with no target field specified (Exits the active field but still progresses to next tab object)

 

Thanks!

Since OnObjectExit is a pre-event trigger, you can exit the script with a result of False (0) to prevent the triggering action from executing, i.e., to prevent the user from exiting the field. OnObjectValidate may be even better.

Create an account or sign in to comment

Important Information

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

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.