- Home
- Classes
- FieldHelpers.MfldTypes
-
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 fieldDataObject <optional> {} Initial field data to populate the instance
Properties
Name Type Description labelstring All fields
keystring All fields
descriptionstring All fields
data_namestring All fields
hiddenboolean All fields
parentstring All fields - in Mfld this is stripped down to containing only the data_name of the direct parent
numericboolean | null Numeric field
formatstring | null Numeric field (e.g., 'decimal')
minstring | null Numeric field minimum value
maxstring | null Numeric field maximum value
displaystring Section display setting
neutral_enabledboolean | null YesNoField neutral option enabled
positivestring | null YesNoField positive label (default: 'yes')
negativestring | null YesNoField negative label (default: 'no')
neutralstring | null YesNoField neutral label (default: 'n/a')
multipleboolean | null ChoiceField allow multiple selections
allow_otherboolean | null ChoiceField allow other option
choice_list_idstring | null ChoiceField choice list ID
use_choice_listboolean | null ChoiceField uses choice list
choicesArray | null ChoiceField or ClassificationField choices array
spannumber Column span for layout (default: 4)
optMfldOpt Mfld options for rendering