September 19, 201114 yr 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.
Create an account or sign in to comment