Skip to content

Common field options

KeyDefault / meaning
recipe (top level)Calculated field value. Calculated fields are managed by the calculation engine.
options.defaultInitial value; type-dependent. Checkbox defaults to false.
options.rulesEmpty string in Bakery; pipe-separated Laravel validation rules. An explicit rules string replaces generated base validation.
options.readonlyfalse; prevents ordinary field writes.
options.ignore_when_emptyfalse; ignores empty input when configured.
options.recipesMap of option name to recipe; dynamically overrides that option when evaluated.

String fields normally receive max:191 validation; links use max:2048. Email adds email and, unless required, nullable. Rule placeholders include ENTITY_ID and CLIENT_ID.

{"identifier":"name","type":"text","options":{"rules":"required|max:100","importable":true}}

Use recipe for a persisted calculation. options.recipes changes options such as visibility, not the field value. Available functions depend on server/client evaluation: see recipe reference.

options.references names the related module. options.fields contains child objects for list fields, but strings naming loaded fields for relations. options.with loads nested relations and takes precedence over depth. Without either, custom fields load no extra relations ([]); base relations use their own definition. referencedBy.module and referencedBy.field describe inverse relations.

pre_filters defaults to [] and is a server query DNF (outer OR groups, inner AND clauses):

{"identifier":"owner","type":"select","options":{"references":"users","pre_filters":[[{"column":"active","operator":"=","value":true}]]}}
OptionDefault / purpose
importabletrue; accept imports into the field.
show_in_exporttrue generally; password defaults to false.
publicfalse; exposes information without authentication only in supported contexts.
registrationfalse; include in registration.
historyControls field history recording.
typescript.type, typescript.importGenerated TypeScript type/import overrides.

Use role field permissions for authorization. Hiding or disabling an input is presentation only.

frontend_disabled disables editing in the SPA; hidden_from_frontend hides the input. custom_label, help, column_width, autofocus, show_in_resource_table, no_filter_in_entity_table, no_sorter_in_entity_table and no_title_in_entity_table control display. recipes can calculate option values.

{"identifier":"customer","type":"select","options":{"references":"customers","events":{"on_change":["customerChanged"]}}}

options.events.on_change names registered workflow events. The workflow must register event/on_change, usually synchronous for immediate form responses. See actions for action/set selectors, list add and validation properties. A field group can set mark_required_fields and show_combined_fields_label; these are layout options, not field types.