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

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

Recommended Posts

Posted

To prevent the following message dialog ''Before Typing press Tab or Click in a field...'' on all of my layouts when a user types outside a field.

I found this suggestion that appears to work: (I put it as a script trigger ''OnlayoutKeystroke'')

If [code(Get(TriggerKeystroke)) = "27"]
Exit Script [Result: True]
Else If [isEmpty(Get(ActiveFieldname)) or PatternCount( FieldType ( Get(FileName) ; Get(ActiveFieldName) ); "Calc") > 0]
Exit Script [Result: False]
End If
I have no programming knowledge at all so I tried to more or less paste this code. It does not do anything on my layout so of course I'm missing something.
[Result: True]
and
[Result: False]
Are these only mere comments or part of the code? My formula builder will not accept these values at all.
My script so far looks like this: (but does nothing)
If [code(Get(TriggerKeystroke)) = "27"]
Exit Script
Else If [isEmpty(Get(ActiveFieldname)) or PatternCount( FieldType ( Get(FileName) ; Get(ActiveFieldName) ); "Calc") > 0]
Exit Script
End If
Also, Keystroke 27 seems to refer to the ESC key. I have no clue what it does here.
If anyone as the patience to help me on that.

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