Represents a template field definition.

interface ITemplateFieldDefinition {
    autoExtract?: boolean;
    constraint?: string;
    constraintError?: string;
    currency?: string;
    defaultValue?: string;
    description?: string;
    displayName?: string;
    fieldType?: LfRepositoryClientV2.FieldType;
    format?: LfRepositoryClientV2.FieldFormat;
    formatPattern?: string;
    groupId?: number;
    groupName?: string;
    hideListValues?: boolean;
    id?: number;
    isIndexed?: boolean;
    isIndexedForReporting?: boolean;
    isMultiValue?: boolean;
    isRequired?: boolean;
    length?: number;
    listValues?: string[];
    localDescription?: string;
    name?: string;
    rule?: LfRepositoryClientV2.Rule;
    warnIfBlank?: boolean;
}

Hierarchy (View Summary)

Implemented by

Properties

autoExtract?: boolean

A boolean indicating whether values for this field can be automatically extracted by AI/OCR services.

constraint?: string

The constraint for values stored in the represented field.

constraintError?: string

The error string that will be returned when the field constraint is violated when setting a value for this field.

currency?: string

The name of the currency that will be using when formatting the represented field when the Format property is set to the Currency member of the WFieldFormat enumeration.

defaultValue?: string

The default value of the field for new entries that are assigned to a template the represented field is a member of.

description?: string

The description of the field.

displayName?: string

The localized name of the field.

The type of the field.

The display format of the represented field.

formatPattern?: string

The custom format pattern for fields that are configured to use a custom format.

groupId?: number

The group id of the field in the template.

groupName?: string

The name of field group.

hideListValues?: boolean

A boolean indicating whether the field's list values should be hidden in the UI. Applies only to list-backed fields.

id?: number

The ID of the field.

isIndexed?: boolean

A boolean indicating whether the field is indexed for searching.

isIndexedForReporting?: boolean

A boolean indicating whether the field is indexed for reporting.

isMultiValue?: boolean

A boolean indicating if the represented template field supports multiple values.

isRequired?: boolean

A boolean indicating if the represented field must have a value set on entries assigned to a template that the field is a member of.

length?: number

The length of the field for variable length data types.

listValues?: string[]

The list of items assigned to the represented field.

localDescription?: string

The per-template description for this field assignment. Distinct from the field definition's repository-level description; set via AddTemplateField / UpdateTemplateFieldProperties.

name?: string

The name of the field.

A form logic rule associated with a Laserfiche template and field definition.

warnIfBlank?: boolean

A boolean indicating whether the user should be warned when leaving the field blank.