Issue report by JonJ
Product
FileMaker ProVersion
14 (and 12 and 13)Operating system version
OSX Yosemite and Win8Description of the issue
the documentation for get(activefieldcontents) says that it "Returns the contents of the field that has the focus."When you set up a script trigger for a field, onObjectModify, using get(activefieldcontents) as a script parameter, the value delivered is the *unmodifed* value, even though the script trigger is supposed to fire *after* the object is modified.
If the target script includes get(activefieldcontents), with no intervening records commits or reverts, the value delivered is the *modifed* value.
This is inconsistent, as there should not have been any changes in record state between the script trigger firing and the script starting. It is clear from the documentation, that the script parameter should be delivering the *modified* (but so-far unsaved and uncommitted value), not the *unmodified* value.
FileMaker has been doing this since v12, and I've usually had a workaround, but in a current solution, I need the function to work as expected.