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

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

Recommended Posts

Posted

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!

Posted

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.

  • Like 1

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