- June 16, 2011 at 7:23 am #31223
Standard ClinicOffice behaviour is that the START TIME of an appointment is given input focus by default when the Appointment Editor window is invoked. This script allows you to change this behaviour so that the PATIENT field is given focus instead.
 Click TOOLS | SCRIPT EDITOR to show the Script Editor screen
 Locate “frmEditorApp” and the “OnAfterEditorOnScreen” event
 Copy & Paste the following script into the Script Editor :-
frmEditorApp frm = (Params as frmEditorApp);
System.Reflection.FieldInfo fi = frm.GetType().GetField("edPatient", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance);
if (fi != null)
Control c = fi.GetValue(frm) as Control;
if (c != null)
 Click OK
To test this out, either create a new appointment or open an existing one, and you should notice that the PATIENT field will be given focus (rather than the START TIME field).
You must be logged in to reply to this topic.