A little card. A lot of reassurance. Help from The Card Project UK.
The Card Project UK
PersoFiles · Script reference

Fields commands

Fields actions for the loaded PersoFile. All commands participate in the same atomic, undoable script run.

field.set

Set label, key, type, required, visible, startBlank, defaultValue or format. Booleans must be true/false. Renaming updates bindings; changing a bound field type is rejected.

field.set key property value

Examples

field.set holderName visible true
field.set holderName format "Member: *"

field.add

Create a field and its first placement. A textbox is a multiline text field. Selects the new placement.

field.add key label [text|image|textbox] [surfaceId]

Examples

field.add memberNumber "Member number" text front

field.place

Place an existing field again; its value and options are shared. Selects the new placement.

field.place key [surfaceId]

Examples

field.place holderName rear

field.delete

Remove a field definition and all text/image/code placements that use it.

field.delete key

Examples

field.delete unusedField

bind

Bind selected plain static text/images to an existing compatible field, or create a field for each selected object when omitted. For codes, use source instead.

bind [existingFieldKey]

Examples

select id:caption; bind holderName

source

Use an existing text field as the dynamic source of selected QR/barcodes.

source fieldKey

Examples

select id:memberBarcode; source memberNumber

source.new

Create a new text source for each selected QR/barcode using its sample content.

source.new

Examples

select id:memberBarcode; source.new

Scripting engine 1.0.0 · This reference is generated from the implemented command catalogue.