AnsweredAssumed Answered

FMP12: Problem with OnObjectValidate trigger

Question asked by ScottWalker on Mar 28, 2014
Latest reply on Mar 28, 2014 by ScottWalker

Title

FMP12: Problem with OnObjectValidate trigger

Post

     Hi - I have a form with several fields and have to control the order in which the focus changes among the fields based on entered values. Most of the fields are drop down lists with a set list of values. For these I use an OnObjectModify script trigger; the script sends the user to the correct next field based on the chosen value. These work fine. I have one field where the users are allowed to type in values in addition to the options available in the drop-down. I can't use OnObjectModify here, because it triggers at every keystroke, not when they are done typing. It seems like OnObjectValidate or OnObjectSave should work, but the trigger does perform as expected. Here is my desired set of actions:

     1. User selects or types value into field

     2. Focus goes to field (with Go to field script step) and selects all.

     If I set the trigger to OnObjectModify, it works as expected, though the user is then limited to the options in the drop-down or a one-character entry. If I set the trigger to OnObjectValidate or OnObjectSave,  the focus does not go to the field in the script. I have verified that it is triggering the script - I put in a test Custom Dialog step above the Go To Field, and the dialog pops up. It just doesn't then go to the field. Any ideas why it is working for OnObjectModify but not OnObjectValidate?

      

Outcomes