represents a form with fields having names namei that take data of type typei.
uses full specification associ for a field, and objj as part of the layout of the form.
Details and Options




- FormObject[…] displays in a notebook interface as a form with fields that can be filled in, either by entering text or using other controls.
- FormObject can be used to specify the structure of a form in FormFunction.
- When evaluated, FormObject[…] is converted to FormObject[fields], in which each entry in fields has a full specification of the form "namei"->associ. The elements of the full specification associ include:
-
"Input" the raw input, if any, for the field (often a string) "Interpreter" the interpreter to be used for the field "Required" whether input is required for the field "Default" a default value, if any, for the field "Control" the type of control to provide for the field "AutoSubmitting" whether entering the field automatically submits the form "Disambiguation" whether to ask for disambiguation of interpretations "Label" a label to display for the field "Hint" hint to display inside an input field "Masked" whether to mask input given in an input field "Help" help to associate with the field - Setting[FormObject[…]] gives an association of the form <"name1"->val1,… >, where the vali are the values obtained by interpreting the "Input" element associated with each "namei" according to the "Interpreter" associated with the "namei".
- If "Input" is missing, or "Interpreter" fails, then the value of "Value" is a Failure object.
- FormObject[…][<"name1"->input1,… >] yields a FormObject[…] in which the "Input" corresponding to each of the namei included has been replaced with inputi.
- In FormObject[{…,objj,…}], the objj can be Delimiter, representing a horizontal delimiter.
- They can also be expressions with heads Style, Row, Item, Text, ExpressionCell, and TextCell, as well as views and layout constructs such as TabView and Grid.
- In FormObject[{"name1"->type1,…}], the typei are used to give values for "Interpreter" in the full specification.
- Possible forms of type specifications are:
-
"form" any form supported by Interpreter Restricted[…],etc. any restricted form etc. supported by Interpreter Interpreter[…] any complete Interpreter object tfun any function to be applied to the raw input - If only "namei" is given, without a rule giving typei, then the interpreter is assumed to be Identity, so that the value is exactly whatever is given as the corresponding "Input" element.
- By default, the control used for each field is determined by the type of input specified. For type "String", a single line of input is by default expected on the web; typing "Text" yields a multiline text field.
- Possible controls explicitly given as the value associated with "Control" include InputField, PopupMenu, Slider, and RadioButtonBar.
- The specification "namei"->AutoSubmitting[typei] indicates that when the field associated with namei is entered, the whole form should automatically be submitted.
- FormObject[AutoSubmitting[spec]] indicates that a form should automatically be submitted whenever any of its fields are entered.
- Overall options for FormObject include:
-
AppearanceRules Automatic association giving overall appearance rules FormLayoutFunction Automatic function to generate final layout for the form PageTheme Automatic overall theme to use when the page is deployed - Typical elements in the setting for AppearanceRules include:
-
"Title" None overall title for the form "Description" None description to include at the top of the form "RequiredFieldIndicator" None indicator to show required fields "SubmitLabel" "Submit" text for the submit button of the form "AddLabel" "+" text of the add button for repeating elements "DeleteLabel" "-" text of the delete button "AddTooltip" "Add" tooltip for the add button "DeleteTooltip" "Remove" tooltip for the delete button "NextLabel" "Next" text of the "next" button for multipage forms "ItemLayout" "Horizontal" layout of field labels and messages - Possible settings for "ItemLayout" include "Horizontal", "Vertical", and "Inline".
Examples
open allclose allBasic Examples (3)Summary of the most common use cases

https://wolfram.com/xid/0e7nnqmq-25oi2r


https://wolfram.com/xid/0e7nnqmq-ymq25
Specify inputs for the form as strings:

https://wolfram.com/xid/0e7nnqmq-w50o4p

Find the inputs that have been provided for the form:

https://wolfram.com/xid/0e7nnqmq-p1sc90

The number has been parsed to an explicit number:

https://wolfram.com/xid/0e7nnqmq-r18kl9

This input given for the second field cannot be parsed to a number, so a message is shown:

https://wolfram.com/xid/0e7nnqmq-rlfp8b

The setting contains a symbolic failure object:

https://wolfram.com/xid/0e7nnqmq-9nhbrr


https://wolfram.com/xid/0e7nnqmq-6gz35p

Scope (17)Survey of the scope of standard use cases
FormObject Structure (1)
A valid FormObject evaluates to an object with an Association with all meta-information:

https://wolfram.com/xid/0e7nnqmq-mgv4fp

Form Submit (1)
Form metadata (3)
You can extract form meta with subvalues:

https://wolfram.com/xid/0e7nnqmq-iwcxgh

You can extract "Help", "Control", "Interpreter", etc.:

https://wolfram.com/xid/0e7nnqmq-597dmm

"Control" gives you the default formatted controller:

https://wolfram.com/xid/0e7nnqmq-qidokk

Use "Failure" to get the failure:

https://wolfram.com/xid/0e7nnqmq-jv89be

If you do not specify a part to extract, the whole controller (with label and help) is returned:

https://wolfram.com/xid/0e7nnqmq-4eymu3

You can extract AppearanceRules in the same way:

https://wolfram.com/xid/0e7nnqmq-omtl3n


https://wolfram.com/xid/0e7nnqmq-5eueht


https://wolfram.com/xid/0e7nnqmq-ojxmhj


https://wolfram.com/xid/0e7nnqmq-159347

Use Setting to extract the cleaned data:

https://wolfram.com/xid/0e7nnqmq-2k0tjr

You can perform several submissions with partial data:

https://wolfram.com/xid/0e7nnqmq-gkvdrs


https://wolfram.com/xid/0e7nnqmq-vz2zgx

Using a form with defaults is considered valid even if not submitted:

https://wolfram.com/xid/0e7nnqmq-ob0iur

Interpreter Specifications (3)
Use rich Interpreter specifications:

https://wolfram.com/xid/0e7nnqmq-fv3l5m

A list can be used to create a menu:

https://wolfram.com/xid/0e7nnqmq-i8c7yw


https://wolfram.com/xid/0e7nnqmq-e3ttsv

Choices can be any expression:

https://wolfram.com/xid/0e7nnqmq-4p625p

Use a custom interpretation function:

https://wolfram.com/xid/0e7nnqmq-zjoadk

Defaults (1)
Specify a default for a field; fields that have a default are not required:

https://wolfram.com/xid/0e7nnqmq-oecudv

Use RuleDelayed to defer evaluation:

https://wolfram.com/xid/0e7nnqmq-fnvuat

Input (1)
Specify an initial value for a field:

https://wolfram.com/xid/0e7nnqmq-2hxlxl

Use RuleDelayed to force a fresh evaluation every time the form is rendered:

https://wolfram.com/xid/0e7nnqmq-uttt1v

Controls (2)
Different types have different controllers. Color pickers for "Color":

https://wolfram.com/xid/0e7nnqmq-mrupb9

Or file pickers for file formats:

https://wolfram.com/xid/0e7nnqmq-5ac68s


https://wolfram.com/xid/0e7nnqmq-fo24kj

You can change the default controller:

https://wolfram.com/xid/0e7nnqmq-22y8yu

Multiple choices support various types of controllers:

https://wolfram.com/xid/0e7nnqmq-bdwfhl


https://wolfram.com/xid/0e7nnqmq-b3s5mh

The control specification also accepts pure functions:

https://wolfram.com/xid/0e7nnqmq-ty4yyt

Label (1)

https://wolfram.com/xid/0e7nnqmq-fe40vb

You can use RuleDelayed and return any expression:

https://wolfram.com/xid/0e7nnqmq-2ar7k


https://wolfram.com/xid/0e7nnqmq-hd0omk

Use None to remove the label:

https://wolfram.com/xid/0e7nnqmq-w510a4


https://wolfram.com/xid/0e7nnqmq-5ylswd

Help (1)

https://wolfram.com/xid/0e7nnqmq-2ozve5

You can use RuleDelayed and return any expression:

https://wolfram.com/xid/0e7nnqmq-inxuzr

Hint (1)
Masked (1)
Disambiguation (1)
For strings that are interpreted from natural language in the Wolfram Cloud, sometimes results might be ambiguous:

https://wolfram.com/xid/0e7nnqmq-1mhcla

Disambiguation is off for most types by default, but it can be easily activated:

https://wolfram.com/xid/0e7nnqmq-gk1z1s

Generalizations & Extensions (1)Generalized and extended use cases
You can use a form inside an XMLTemplate; HTML code will be generated:

https://wolfram.com/xid/0e7nnqmq-ykekr7


https://wolfram.com/xid/0e7nnqmq-if24yq

Extract metadata from a form and write a custom template:

https://wolfram.com/xid/0e7nnqmq-moajbl


https://wolfram.com/xid/0e7nnqmq-b1a4ar

Options (2)Common values & functionality for each option
AppearanceRules (1)
Write a custom title and description:

https://wolfram.com/xid/0e7nnqmq-lc50lb


https://wolfram.com/xid/0e7nnqmq-y6kz35

Use an "ItemLayout" to change form fields' appearance:

https://wolfram.com/xid/0e7nnqmq-1sw2kb


https://wolfram.com/xid/0e7nnqmq-4w5qpc

Applications (1)Sample problems that can be solved with this function
Properties & Relations (2)Properties of the function, and connections to other functions
You can use a FormObject as the first argument of APIFunction and FormFunction:

https://wolfram.com/xid/0e7nnqmq-28wuvl


https://wolfram.com/xid/0e7nnqmq-oagbeb

The single fields of a FormObject use Interpreter to transform the input in Wolfram Language expressions:

https://wolfram.com/xid/0e7nnqmq-pwx7ot

This is effectively the same as:

https://wolfram.com/xid/0e7nnqmq-me9ej6

And the same as applying Interpreter directly:

https://wolfram.com/xid/0e7nnqmq-02zt3a

Possible Issues (4)Common pitfalls and unexpected behavior
"Hint" and "Masked" are supported only by InputField:

https://wolfram.com/xid/0e7nnqmq-vsv3hh

"Hint" and "Masked" are ignored by other controllers:

https://wolfram.com/xid/0e7nnqmq-pu5na0

When using Alternatives in the Interpreter type, one might get the wrong controller:

https://wolfram.com/xid/0e7nnqmq-mbtkrt

Explicitly setting the "Control" field can fix the problem:

https://wolfram.com/xid/0e7nnqmq-0n4v3e

FormObject is an inert representation of the form specification; as such, buttons in it do not work:

https://wolfram.com/xid/0e7nnqmq-g5343r

When the Interpreter type is not of a form that supports lists, only the last element will be kept:

https://wolfram.com/xid/0e7nnqmq-crd3ez

Wolfram Research (2014), FormObject, Wolfram Language function, https://reference.wolfram.com/language/ref/FormObject.html.
Text
Wolfram Research (2014), FormObject, Wolfram Language function, https://reference.wolfram.com/language/ref/FormObject.html.
Wolfram Research (2014), FormObject, Wolfram Language function, https://reference.wolfram.com/language/ref/FormObject.html.
CMS
Wolfram Language. 2014. "FormObject." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/FormObject.html.
Wolfram Language. 2014. "FormObject." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/FormObject.html.
APA
Wolfram Language. (2014). FormObject. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FormObject.html
Wolfram Language. (2014). FormObject. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FormObject.html
BibTeX
@misc{reference.wolfram_2025_formobject, author="Wolfram Research", title="{FormObject}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/FormObject.html}", note=[Accessed: 18-April-2025
]}
BibLaTeX
@online{reference.wolfram_2025_formobject, organization={Wolfram Research}, title={FormObject}, year={2014}, url={https://reference.wolfram.com/language/ref/FormObject.html}, note=[Accessed: 18-April-2025
]}