[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.consent = true;
[4] Click OK
To test this out, try creating a new patient record and notice that the CONSENT field will now be ticked by default.