AnsweredAssumed Answered

A Tip : Prevent Dialog Before Typing press Tab or Click in a field, or choose..

Question asked by S W on Jan 26, 2010
Latest reply on Aug 19, 2014 by store@briefcase.net.au

Title

A Tip : Prevent Dialog Before Typing press Tab or Click in a field, or choose..

Post

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]

End If

 

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

Outcomes