Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5654 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

On page 4-5 of the FileMaker Training series book near the bottom it says:

"With script triggers that execute prior to the event, you have the ability to cancel the event that triggered the script by using the exit Script script step to return False."

I sort of get what is being said but can anyone clarify or have an example of this?

Posted

Here's a simple example:

If [ IsEmpty ( Filter ( Get ( TriggerKeystroke ) ; "0123456789" ) ) ]

Exit Script [ Result: False ]

End If

If you set a field to run this script OnObjectKeystroke, users will be able to enter numeric characters only - any other character typed into the field will be ignored.

This topic is 5654 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.