How to set a default Town/City for new Patients?

Scripting help and sample scripts for use with the Scripting Module
Post a reply

How to set a default Town/City for new Patients?

Postby Support » September 16th, 2013, 9:24 am

[1] Click TOOLS | SCRIPT EDITOR to show the Script Editor screen
[2] Locate "frmEditorPatient" and the "OnAfterNewRecord" event
[3] Copy & Paste the following script into the Script Editor :-

Code: Select all
frmEditorBaseRec Editor = (Params[0] as frmEditorBaseRec);
cPer per = (Editor.Record as cPer);
per.towncity = "London";

[4] 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.
ClinicOffice Support Team
User avatar
Support
Site Admin
 
Posts: 875
Joined: August 25th, 2005, 6:37 pm
Top

Post a reply

Return to Scripting

Who is online

Users browsing this forum: No registered users and 1 guest

cron