Before you'll have to suppress FM's message with the step:Set Error Capture [ On ]and only then trap for errors.
In the script i SET ERROR CAPTURE (ON)
But filemaker still gives the message ???
I put my script on the trigger of the field 'on validation object
Any idea ???
If the script is fired by that trigger, you do not need to trap for errors, neither to suppress FM's error message.
Try something like:
Show Custom Dialog [ "what you want" ]
Exit Script [ Result: 0 ]
I am a newbie on filemaker so i will a bit better explain waht i do and want
I have a field (with a list on it to a related file)
I want that when i type a value thats not in the related file ther comes a dialog that asks to add a new record in the related file
I tought to do it with trapping error 505 but thats not the right choice ??
I do not understand well your previous command !
and.... thanks for the response !
Then try this script:If [ IsEmpty ( FilterValues ( Get ( ActiveFieldContents ) ; ValueListItems ( Get ( FileName ) ; "TheNameOfYourValueListInQuotes" ) ) ) ]Show Custom Dialog [ "add a new record in the related file" ]Exit Script [ Result: 0 ]End If
Thanks you are great one of the biggest advantages of filemaker - a hell of a forum !!! for newbies like me !