[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.