interface FormElement @formium/clientForm element interface. This is a polymorphic interface that is the union of all possible element options within a given schema.
| Props | Description |
|---|---|
actions | Array<FormElementAction>The list of logic actions for this element. |
allowOther | booleanAllow an other option in list. Only applies to choice or select options. |
defaultValue | stringInitial value of the element. Does not apply to choice elements. |
description | stringThe element description |
dynamic | booleanCan the field be dynamically populated via URL query? |
dynamicParam | stringThe name of the dynamic parameter (URL query parameter) |
hidden | booleanIs the element hidden (initially)? |
id | stringUnique identifier Required |
items | Array<string>The list of child element ids belonging to this element. For a page element, these would be ids of elements. For a Radio field, these would be the list of choice ids. |
maxLength | numberMaximum number of characters allowed in the answer, must be a positive integer. |
maxValue | numberMaximum value allowed in the answer, must be a positive integer. |
minLength | numberMinimum number of characters allowed in the answer, must be a positive integer. |
minValue | numberMinimum value allowed in the answer, must be a positive integer. |
placeholder | stringThe input placeholder (if applicable) |
randomize | booleanShould randomize options? |
required | booleanIs the element required? |
requiredText | stringCustom error text when empty, but required |
slug | stringAdministrative slug Required |
title | stringTitle of element |
type | |
uploadTypes | Array<FormElementUploadTypes>The set of allowed upload types |