Include Exit Script [False] As the last step of your triggered script. The False value returned by the Exit script terminates the triggering event-which in this case is to put the cursor into the next feld in your layout's tab order. You may want to look this one up under Script Triggers in FileMaker Help as this method applies to many but not all script triggers and it's useful to know which are which.
I'm a dummy! Thanks Phil. I've asked about that before with navigating around tabbed structures. I don't understand it though - is the exit script the default script that exists for all fields to tell FM to go to the next field?
Every ScriptTrigger is tripped by some "event" in the database. Each different trigger responds to different evernts and some triggers like OnObjectExt trip the trigger and then let the event that triggered it happen, WIth others, the triggering event is processed and then the trigger is tripped.
With "Trip first, then process the event" triggers like OnObjectExit, after the last line of the script executes, the database picks up where it left off and processes the triggering event. In this case, that puts the cursor back into the next field of your tab order if you use tab/return/enter to exit the field. The Exit Script [False] step is the option provided to us to keep that from taking place.
If you look up Script Trigger in Filemaker help, you should be able to find a table of these triggers that will tell you which are which when it comes to processing the triggering event.