AnsweredAssumed Answered

FM loses field focus when OnObjectEnter script is triggered in repeating field

Question asked by user17265 on Mar 19, 2012
Latest reply on Mar 20, 2012 by user17265

Summary

FM loses field focus when OnObjectEnter script is triggered in repeating field

Product

FileMaker Pro

Version

11.0v3

Operating system version

Windows 7

Description of the issue

Over the weekend I added an OnObjectEnter script trigger to a repeating field, and everything seemed to work fine, but when I came in Monday, it was not allowing any data entry into any of the repeating fields, on my PC or on the production floor Macs.  The script ran another script that checked that a set of fields was filled in correctly when the first repeating field was entered.  Otherwise it just updated one field.

Steps to reproduce the problem

When trying to enter data into any cell of the repeating field we got the message you see when trying to enter data when no field is selected.

Exact text of any error message(s) that appear

Before typing, press Tab or click in a field, or choose new new record.

Workaround

I was able to get things working again by changing the trigger to onObjectExit, but why would using onObjectEnter cause this behavior?

Outcomes