2 Replies Latest reply on Sep 20, 2013 7:28 PM by coherentkris



      From the FMP help on this script trigger...


      "This also triggers a script to run by reverting from a validation error dialog."


      Then later on it says,


      "Clicking revert Field in a field validation error dialog does not activate this trigger.."


      What is the truth here?





        • 1. Re: onRecordRevert

          Those are two different things. The first is record based, the second message is object based.


          Revert field contents is displayed when a validation condition fails, IE entering text into a date field where date format is required, or entering in more than 10 numbers into a field that requires exactly ten digits. In this case, the validation is run BEFORE you exit the active field and try to commit the record.


          This trigger (OnRecordRevert / OnRecordCommit) is geared towards a commit to the entire record, which would only happen AFTER the OnObjectValidate trigger has already passed valid.


          Order of operation is very important to consider. It's covered on the certification tests too. Read up on this article a bit more to understand the order:



          Good luck!

          • 2. Re: onRecordRevert

            got it.. thanks for clearing it up