A Tip : Prevent Dialog Before Typing press Tab or Click in a field, or choose..
Heres a tip to prevent the following dialog box appearing on a layout
"Before Typing press Tab or Click in a field, or choose the new record command"
Of course, some layouts may not have a new record command, or even any fields so this can be confusing for the user
Not to mention having to get rid of the dialog box by clicking ok.
Create a Script :
If [code(Get(TriggerKeystroke)) = "27"]
Exit Script [Result: True]
Else If [is empty(Get(ActiveFieldname))]
Exit Script [Result: False]
Set a script trigger for OnLayoutKeystroke and choose the above script to run.
It can of course be used on layouts with fields, it will prevent the dialog if they start typing when not in a field
but allow typing if they are...
P.S Keystroke 27 is ESC