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

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

Recommended Posts

Posted

I have a field in my database where I was told is being used improperly by certain users.

They need it to match a certain syntax. They want to see if I can prohibit certain characters from being entered.

I am familiar with setting up value list validation... but that is for the entire field.... if I just wanted to block "/","L","W","H" from being used anywhere in the field, is that possible?

Posted

I am familiar with setting up value list validation...

If you want to use the validation option for that field, you can use:

IsEmpty ( Filter ( Self ; "/LWH" ) )

But... you have 10, so why not use an OnOjectKeystroke trigger and the function Code ( ) to block those chars ?

The script to fire is really simple:

If [ ValueCount ( FilterValues ( Code ( Get ( TriggerKeystroke ) ) ; "47¶72¶76¶87" ) ) ]

Exit Script [ Result: 0 ]

End If

This topic is 5282 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.