Magidoc

FormElementInput
Input Object

Input type for form elements (questions/fields) in a form Represents a single form element with all its properties

Fields

#

actionAttachments

Whether to map field to action attachments

actionCustomField

Whether to map field to action custom field

actionDescription

Whether to map field to action description

availableLabels

Which labels a dynamic labels question offers: all (default) or only its specificLabels

choices

Array of choices for dropdown, radiogroup, checkbox, etc.

Default: []

commentText

Label for additional comment field

commentValue

Default value for comment field

customFieldId

ID of custom field

customFieldItemType

Type of custom field

defaultDate

Default date configuration - can be either a string or an object with date settings

description

Help text shown under the title

detailElements

Nested form elements

Default: []

elements

Nested form elements for static panel

Default: []

emptyValuesToActionCustomField

Whether to map empty values to action custom field

emptyValuesToActionDescription

Whether to map empty values to action description

enableIf

Conditional enable expression

fieldId

Unique ID for the field, used for mapping and references

hasOther

Whether to show 'Other' option

hasSelectAll

Whether to show 'Select All' option

isRequired

Whether the field is required

label

Whether to add the labels picked in a dynamic labels question to the created action

mapActionCustomFieldTo

ID of custom field to map to in action

mapProjectCustomFieldTo

ID of custom field to map to in project

mapTo

Field mapping configuration

maxSize

Maximum size for file uploads

multiple

Whether multiple selections are allowed

name

Non-null

Unique name identifier for the element

noneText

Text to display for the 'None' option

parentFieldId

ID of parent field for nested elements

projectCustomField

Whether to map field to project custom field

readOnly

Whether the field is read-only

recordFieldMappings

Maps table column keys to form field names for prefill

Default: []

showNoneItem

Whether to show a 'None' option

showOtherItem

Whether to show the 'Other' item

showSelectAllItem

Whether to show the 'Select All' item

sourceDisplayFieldKey

Table column key used as record picker display label

sourceSortOrder

Display-label order; omitted on legacy questions

sourceTableId

Source Hive table id for dynamic table record picker

specificLabels

Label IDs a dynamic labels question offers when availableLabels is specificLabels

Default: []

templateElements

Nested form elements for dynamic panel

Default: []

title

Display title for the element

type

Non-null

The type of form element (text, dropdown, date, etc.)

values

Array of values

Default: []

visibleIf

Conditional visibility expression

waitForUpload

Whether to wait for upload completion