- September 16, 2013 at 9:24 am #31430
 Click TOOLS | SCRIPT EDITOR to show the Script Editor screen
 Locate “frmEditorPatient” and the “OnAfterNewRecord” event
 Copy & Paste the following script into the Script Editor :-
frmEditorBaseRec Editor = (Params as frmEditorBaseRec);
cPer per = (Editor.Record as cPer);
per.towncity = "London";
 Click OK
In the example above, we are setting the Town/City field to default to “London”, but you can change the text between the ” ” to whatever you wish. To test this out, try creating a new patient record and notice that the “Town/City” field will be populated with your default value.
You must be logged in to reply to this topic.