February 26, 201411 yr 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!
February 26, 201411 yr 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