AnsweredAssumed Answered

OnObjectExit script not working in FM Go

Question asked by BeauLarkin on May 23, 2013
Latest reply on May 24, 2013 by BeauLarkin

Summary

OnObjectExit script not working in FM Go

Product

FileMaker Go

Version

12.0.6

Operating system version

iOS 6.1.3

Description of the issue

OnObjectExit triggered script in filemaker 12 advanced assists in validating the data entered in a field. When moving the database to FM Go, the script no longer triggers on field exit, but the script is present and when run manually in FM Go will return the correct validation.

Steps to reproduce the problem

create this script on a number field in FM:

If [ Mod ( Table::Field ; 0.5 ) ≠ 0 ]
Show Custom Dialog [ "number should end in 0 or 0.5" ]
Exit Script [ Result: False ]
End If

Install the db on an iPad with FM Go and attempt to enter a number that violates the rule (e.g., 12.3) into the field. Exit the field.

Expected result

Alert user that the data entered ends in a number other than 0 or 0.5

Actual result

In FM Go, nothing happens upon field exit or at any other time automatically. The only way to trigger the script seems to be to Touch the gear icon, select settings -> perform script and trigger it manually.

Exact text of any error message(s) that appear

none

Configuration information

The next field entered is a drop down list; I have seen that script triggers in fields with drop down lists perform incorrectly on FM Go; in this case the script is in the previous field so it should trigger before the drop down list appears.

Workaround

As PhilModJunk suggested, using OnObjectValidate performs the desired behavior on FM Go.

Outcomes