# Type alias FieldCfg

FieldCfg: {
attributes?: GenObj;
calculated?: boolean;
class?: string;
default?: string;
description?: string;
disabled?: boolean;
exclude_from_mobile?: boolean;
expression?: string;
fieldview?: string;
help?: {
context?: Row;
dynContext?: string[];
topic: string;
};
hidden?: boolean;
id?: number;
in_auto_save?: boolean;
input_type?: InputType;
is_unique?: boolean;
label?: string;
name?: string;
options?: (string | {
label: string;
value: string;
})[];
parent_field?: string;
postText?: string;
primary_key?: boolean;
refname?: string;
reftable?: AbstractTable;
reftable_name?: string;
reftype?: string | Type;
required?: boolean;
showIf?: {
[field_name: string]: string | boolean | string[];
};
sourceURL?: string;
stored?: boolean;
sublabel?: string;
tab?: string;
table?: AbstractTable | null;
table_id?: number;
type?: string | Type;
validator?: ((value, whole_rec?) => boolean | string | undefined);
}

#### Type declaration

- ##### `Optional` attributes?: GenObj

- ##### `Optional` calculated?: boolean

- ##### `Optional` class?: string

- ##### `Optional` default?: string

- ##### `Optional` description?: string

- ##### `Optional` disabled?: boolean

- ##### `Optional` exclude_from_mobile?: boolean

- ##### `Optional` expression?: string

- ##### `Optional` fieldview?: string

- ##### `Optional` help?: {
  context?: Row;
  dynContext?: string[];
  topic: string;
  }

  - ##### `Optional` context?: Row

  - ##### `Optional` dynContext?: string[]

  - ##### topic: string

- ##### `Optional` hidden?: boolean

- ##### `Optional` id?: number

- ##### `Optional` in_auto_save?: boolean

- ##### `Optional` input_type?: InputType

- ##### `Optional` is_unique?: boolean

- ##### `Optional` label?: string

- ##### `Optional` name?: string

- ##### `Optional` options?: (string | {
  label: string;
  value: string;
  })[]

- ##### `Optional` parent_field?: string

- ##### `Optional` postText?: string

- ##### `Optional` primary_key?: boolean

- ##### `Optional` refname?: string

- ##### `Optional` reftable?: AbstractTable

- ##### `Optional` reftable_name?: string

- ##### `Optional` reftype?: string | Type

- ##### `Optional` required?: boolean

- ##### `Optional` showIf?: {
  [field_name: string]: string | boolean | string[];
  }

  - ##### [field_name: string]: string | boolean | string[]

- ##### `Optional` sourceURL?: string

- ##### `Optional` stored?: boolean

- ##### `Optional` sublabel?: string

- ##### `Optional` tab?: string

- ##### `Optional` table?: AbstractTable | null

- ##### `Optional` table_id?: number

- ##### `Optional` type?: string | Type

- ##### `Optional` validator?: ((value, whole_rec?) => boolean | string | undefined)

  - - (value, whole_rec?): boolean | string | undefined

    - #### Parameters

      - ##### value: any

      - ##### `Optional` whole_rec: Row

      #### Returns boolean | string | undefined

- Defined in saltcorn-types/model-abstracts/abstract_field.ts:23

Generated using TypeDoc