Lawyer's view: a third field level and print mode between masked and complete #29
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
A third print view, lawyer's view, between "withhold secrets" and "include secrets". Some fields (e.g. a bank account number) are things a lawyer needs but a casual reader of the overview should not see, while others (e.g. the current balance) stay private even from the lawyer.
Example, a bank account record:
Design
secret: boolean. A lawyer-level field or frame issecret: true, lawyer: true. Older builds still treat it as a secret (fails closed).validate()acceptslawyeronly as a boolean, and only together withsecret: true.displayValue(field, mode)andframeView(frame, mode)take a mode'masked' | 'lawyer' | 'complete'instead of theincludeSecretsboolean. The print dialog gets a third radio, with counts of what each view hides. The page note says which view the copy is.secret:countSecrets,clearSecrets(the?reset=1eraser still erases lawyer-level values, since they are secret),usesViewcredential references, and the on-screen Show/Hide.print.test.js(all three modes, empty values, images, frames),model.test.js(validation, older-shape files),ops.test.js(clearSecretsand counts).Decided: frames and image fields included; "Lawyer" is the label.