AnsweredAssumed Answered

Script Trigger validation

Question asked by deathrobot on Jul 8, 2014
Latest reply on Jul 9, 2014 by deathrobot


Script Trigger validation


     Hi. Having trouble with the following. In one table I have a field that has its validation set to require a unique value. I use a custom dialog plugin and would like to have this show instead of Filemaker's default in the event of a duplicate value. I am trying to call a script that is:

     Set Error Capture [On]
     If [Get ( LastError ) <> 0]
          Show Custom Dialog
     End If

     I need to trigger this from a script trigger. I have tried every one, and in every case FM's default validation dialog shows before this script is run. Is there a way to do this using FM's validation? Or does it require turning that off and creating a scripted validation?