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

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

detailElements

Nested form elements

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

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

showNoneItem

Whether to show a 'None' option

showOtherItem

Whether to show the 'Other' item

showSelectAllItem

Whether to show the 'Select All' item

specificLabels

Array of specific label IDs

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