FormTemplateField interface exported
Last updated: 2026-03-05T10:53:28.867Z
Location
Metrics
LOC: 20
Complexity: 1
Params: 0
Signature
interface FormTemplateField
Summary
Structured field config for form templates
Source Code
export interface FormTemplateField {
/** Field identifier (selector, name, or id). Use a FieldType value for type-based matching. */
key: string;
/** Human-readable label */
label: string;
/** Fill mode: fixed uses fixedValue, generator uses generatorType */
mode: FormFieldMode;
/** Value to use when mode === 'fixed' */
fixedValue?: string;
/** Generator type to use when mode === 'generator' */
generatorType?: FieldType;
/**
* When set, matches any detected field whose fieldType equals this value.
* Takes precedence over selector-based key matching.
* Allows templates to be site-agnostic (works on any form that has a field of this type).
*/
matchByFieldType?: FieldType;
/** Generator params (min/max, formatted, etc.) — only used when mode === 'generator' */
generatorParams?: import("./field-type-definitions").GeneratorParams;
}
No outgoing dependencies.
Impact (Incoming)
| Source | Type |
|---|---|
| fieldTypeLabel | uses |
| FormsTabViewCallbacks | uses |