When a cash receipt page is opened, I want to default the Document Type to "Payment" and am trying to do it on a trigger OnNewRecord, but I am not sure how to set the value for an enum data type. Anyone do this and know what I need?
trigger OnNewRecord(BelowxRec: Boolean)
begin
Rec.Validate("Document Type");
end;