new MfldTypes( [ fieldData ] )

Constructor for Merjent Fulcrum field types

Description

Properties of Mfld are the same as Fulcrum field properties, except: 'parent' which is truncated to only the direct parent. 'span' and 'opt' are added to Fulcrum Field properties.

Parameters
Name Type Attributes Default Description
fieldData Object <optional>
{}

Initial field data to populate the instance

Properties
Name Type Description
label string

All fields

key string

All fields

description string

All fields

data_name string

All fields

hidden boolean

All fields

parent string

All fields - in Mfld this is stripped down to containing only the data_name of the direct parent

numeric boolean | null

Numeric field

format string | null

Numeric field (e.g., 'decimal')

min string | null

Numeric field minimum value

max string | null

Numeric field maximum value

display string

Section display setting

neutral_enabled boolean | null

YesNoField neutral option enabled

positive string | null

YesNoField positive label (default: 'yes')

negative string | null

YesNoField negative label (default: 'no')

neutral string | null

YesNoField neutral label (default: 'n/a')

multiple boolean | null

ChoiceField allow multiple selections

allow_other boolean | null

ChoiceField allow other option

choice_list_id string | null

ChoiceField choice list ID

use_choice_list boolean | null

ChoiceField uses choice list

choices Array | null

ChoiceField or ClassificationField choices array

span number

Column span for layout (default: 4)

opt MfldOpt

Mfld options for rendering