# Type Alias FieldCfg

type 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: any,
whole_rec?: Row,
field?: { required: boolean },
) => boolean | string | undefined;
}

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

##### Index

### Properties

attributes?
calculated?
class?
default?
description?
disabled?
exclude_from_mobile?
expression?
fieldview?
help?
hidden?
id?
in_auto_save?
input_type?
is_unique?
label?
name?
options?
parent_field?
postText?
primary_key?
refname?
reftable?
reftable_name?
reftype?
required?
showIf?
sourceURL?
stored?
sublabel?
tab?
table?
table_id?
type?
validator?

## Properties

### `Optional` attributes

attributes?: GenObj

- Defined in model-abstracts/abstract_field.ts:55

### `Optional` calculated

calculated?: boolean

- Defined in model-abstracts/abstract_field.ts:47

### `Optional` class

class?: string

- Defined in model-abstracts/abstract_field.ts:35

### `Optional` default

default?: string

- Defined in model-abstracts/abstract_field.ts:37

### `Optional` description

description?: string

- Defined in model-abstracts/abstract_field.ts:40

### `Optional` disabled

disabled?: boolean

- Defined in model-abstracts/abstract_field.ts:46

### `Optional` exclude_from_mobile

exclude_from_mobile?: boolean

- Defined in model-abstracts/abstract_field.ts:62

### `Optional` expression

expression?: string

- Defined in model-abstracts/abstract_field.ts:50

### `Optional` fieldview

fieldview?: string

- Defined in model-abstracts/abstract_field.ts:26

### `Optional` help

help?: { context?: Row; dynContext?: string[]; topic: string }

- Defined in model-abstracts/abstract_field.ts:39

### `Optional` hidden

hidden?: boolean

- Defined in model-abstracts/abstract_field.ts:45

### `Optional` id

id?: number

- Defined in model-abstracts/abstract_field.ts:36

### `Optional` in_auto_save

in_auto_save?: boolean

- Defined in model-abstracts/abstract_field.ts:61

### `Optional` input_type

input_type?: InputType

- Defined in model-abstracts/abstract_field.ts:52

### `Optional` is_unique

is_unique?: boolean

- Defined in model-abstracts/abstract_field.ts:44

### `Optional` label

label?: string

- Defined in model-abstracts/abstract_field.ts:24

### `Optional` name

name?: string

- Defined in model-abstracts/abstract_field.ts:25

### `Optional` options

options?: (string | { label: string; value: string })[]

- Defined in model-abstracts/abstract_field.ts:42

### `Optional` parent_field

parent_field?: string

- Defined in model-abstracts/abstract_field.ts:33

### `Optional` postText

postText?: string

- Defined in model-abstracts/abstract_field.ts:34

### `Optional` primary_key

primary_key?: boolean

- Defined in model-abstracts/abstract_field.ts:48

### `Optional` refname

refname?: string

- Defined in model-abstracts/abstract_field.ts:58

### `Optional` reftable

reftable?: AbstractTable

- Defined in model-abstracts/abstract_field.ts:54

### `Optional` reftable_name

reftable_name?: string

- Defined in model-abstracts/abstract_field.ts:53

### `Optional` reftype

reftype?: string | Type

- Defined in model-abstracts/abstract_field.ts:57

### `Optional` required

required?: boolean

- Defined in model-abstracts/abstract_field.ts:43

### `Optional` showIf

showIf?: { [field_name: string]: string | boolean | string[] }

- Defined in model-abstracts/abstract_field.ts:32

### `Optional` sourceURL

sourceURL?: string

- Defined in model-abstracts/abstract_field.ts:51

### `Optional` stored

stored?: boolean

- Defined in model-abstracts/abstract_field.ts:49

### `Optional` sublabel

sublabel?: string

- Defined in model-abstracts/abstract_field.ts:38

### `Optional` tab

tab?: string

- Defined in model-abstracts/abstract_field.ts:59

### `Optional` table

table?: AbstractTable | null

- Defined in model-abstracts/abstract_field.ts:60

### `Optional` table_id

table_id?: number

- Defined in model-abstracts/abstract_field.ts:56

### `Optional` type

type?: string | Type

- Defined in model-abstracts/abstract_field.ts:41

### `Optional` validator

validator?: (
value: any,
whole_rec?: Row,
field?: { required: boolean },
) => boolean | string | undefined

- Defined in model-abstracts/abstract_field.ts:27