represents an active page that takes input from a form and generates results on the same page by applying func to the values obtained from the form whose structure is defined by formspec.
represents an active form page with fields named namei interpreted as types typei.
uses defaulti as the default for the field specified by namespeci.
uses initform as the initial layout specification and resform as the layout specification for result pages.
Details and Options

- CloudDeploy[FormPage[…]] yields a cloud object containing an active form page.
- FormPage[formspec,func][<"namek"->inputk,… >] inserts the inputs given into the initial form specified by the FormPage object.
- Setting[FormPage[formspec,func]] evaluates to func applied to the current values of the form.
- In FormPage[formspec,func,layout], possible specifications for layout include:
-
"ResultBelow" display results below the form "ResultAbove" display results above the form {elem1,elem2,…} display layout elements in the specified order - In FormPage[formspec,func,{elem1,elem2,…}], possible elemi include:
-
"Form" the form as specified by formspec "Result" results generated by applying func "Button" button for submitting the form - Overall options for FormPage include:
-
AppearanceRules Automatic association giving overall appearance rules FormLayoutFunction Automatic function to generate layout for the form FormProtectionMethod Automatic method for spam protection PageTheme Automatic overall theme to use for the form ImageFormattingWidth $ImageFormattingWidth wrapping width for output formatting ImageSize Automatic overall image size for output
Examples
open allclose allBasic Examples (1)Summary of the most common use cases
Use FormPage to continuously interact with a webpage:

https://wolfram.com/xid/0tzrr1ra-d6t7pc

Scope (31)Survey of the scope of standard use cases
Interpreter Specifications (6)
Use rich Interpreter specifications:

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

The Interpreter head is optional, but useful to specify options or other arguments to Interpreter:

https://wolfram.com/xid/0tzrr1ra-qztwkj

A list can be used to create a menu:

https://wolfram.com/xid/0tzrr1ra-6smtp1


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

An entity list can be used as a menu:

https://wolfram.com/xid/0tzrr1ra-oqkvfa

Choices can be any expression:

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

A list of rules allows for label specification:

https://wolfram.com/xid/0tzrr1ra-xysu80

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

https://wolfram.com/xid/0tzrr1ra-cdiz5z

Fields can be optional without having a default:

https://wolfram.com/xid/0tzrr1ra-b016u0

Use RuleDelayed to evaluate a new default every time:

https://wolfram.com/xid/0tzrr1ra-y9e2f2

Input (2)
Label (1)

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

You can use RuleDelayed and return any expression:

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


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

Use None to remove the label:

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


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

Appearance (4)
Change the default label to be something different from the key:

https://wolfram.com/xid/0tzrr1ra-yvbojq


https://wolfram.com/xid/0tzrr1ra-b1796p

Change the appearance of single fields:

https://wolfram.com/xid/0tzrr1ra-utml3i

Use RuleDelayed to evaluate an expression in the cloud:

https://wolfram.com/xid/0tzrr1ra-8lx4xf

Use non-rule elements to change the default appearance:

https://wolfram.com/xid/0tzrr1ra-zw7qzq

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

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

Or file pickers for file formats:

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


https://wolfram.com/xid/0tzrr1ra-2mmd2l

Change the default controller:

https://wolfram.com/xid/0tzrr1ra-s3gz1r

Multiple choices support various types of controllers:

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

Labels for radio buttons can be anything you want:

https://wolfram.com/xid/0tzrr1ra-6uie7e

The control specification also accepts pure functions:

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

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

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

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

https://wolfram.com/xid/0tzrr1ra-rjeevc

Sometimes several parts of the expression are ambiguous:

https://wolfram.com/xid/0tzrr1ra-b8hvwu

Dynamic Forms (1)
Parts of forms that contain TemplateSlot are not evaluated until the keys mentioned in TemplateSlot[key] are bound to a proper value:

https://wolfram.com/xid/0tzrr1ra-gek4j1

Layout (4)
Put the result below the form:

https://wolfram.com/xid/0tzrr1ra-ssqtlo

Put the result above the form:

https://wolfram.com/xid/0tzrr1ra-33ncij


https://wolfram.com/xid/0tzrr1ra-nz9mgw


https://wolfram.com/xid/0tzrr1ra-y1189f
Specify a different order for the initial form and the results:

https://wolfram.com/xid/0tzrr1ra-ye6c1v

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

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


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

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

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


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


https://wolfram.com/xid/0tzrr1ra-bker7k

FormLayoutFunction (1)
PageTheme (4)
Deploy a form with a white theme:

https://wolfram.com/xid/0tzrr1ra-kpu9ak

Deploy a form with a blue theme:

https://wolfram.com/xid/0tzrr1ra-8o9380

Deploy a form with a black theme:

https://wolfram.com/xid/0tzrr1ra-v03qlo

Deploy a form with a red theme:

https://wolfram.com/xid/0tzrr1ra-zib0jp

Applications (2)Sample problems that can be solved with this function
Properties & Relations (9)Properties of the function, and connections to other functions
FormPage is designed to be interchangeable with FormFunction:

https://wolfram.com/xid/0tzrr1ra-gdqgs1

FormPage is designed to be interchangeable with APIFunction:

https://wolfram.com/xid/0tzrr1ra-cx3tzu


https://wolfram.com/xid/0tzrr1ra-uunrde

The first argument of FormPage can be given as a full FormObject:

https://wolfram.com/xid/0tzrr1ra-izi7l8

FormPage evaluates so that the first argument becomes a full FormObject:

https://wolfram.com/xid/0tzrr1ra-ud6stg

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

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

This is effectively the same as:

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

AnySubset can be used to generate a controller where more than one choice can be picked:

https://wolfram.com/xid/0tzrr1ra-ek29ej

RepeatingElement can be used to create a group of fields that can be added and deleted:

https://wolfram.com/xid/0tzrr1ra-cael9i

CompoundElement can be used to create an extensible table of fields:

https://wolfram.com/xid/0tzrr1ra-k52ks

Possible Issues (1)Common pitfalls and unexpected behavior
Interpreter["String"] accepts an empty string. This is not true for FormPage, where the empty string and an empty field are considered equivalent:

https://wolfram.com/xid/0tzrr1ra-xswe58


https://wolfram.com/xid/0tzrr1ra-obuq5z

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