WOLFRAM

Enable JavaScript to interact with content and submit forms on Wolfram websites. Learn how
Wolfram Language & System Documentation Center
Wolfram Language Home Page »

FormControl

FormControl [assoc,struct]

represents an editable form in a notebook, with structure specified by struct and current values specified by assoc.

FormControl [Dynamic [x],struct]

represents a form in a notebook in which current values are given by the dynamically updated value of x.

Details

  • The structure struct can be specified as in FormObject or can be a complete FormObject [] expression.
  • Values in the displayed form can be edited without affecting values in FormControl []. The values in FormControl [] are updated only when the Submit button is clicked.

Examples

open allclose all

Basic Examples  (2)

Dynamically update a variable using a FormControl :

Use the full FormObject specification for better control over the appearance of the FormControl :

Scope  (1)

The first argument of FormControl does not need to be a Dynamic expression:

But if the first argument is not an association with the right keys, the FormControl will not render:

Properties & Relations  (2)

Manipulate automatically uses FormControl when given a FormObject :

You can use ControlType to specify FormControl for a given field in Manipulate :

See Also

InputField   Manipulate   FormObject   FormFunction   FormPage   Grid

Related Workflows

History

Introduced in 2016 (11.0)

Wolfram Research (2016), FormControl, Wolfram Language function, https://reference.wolfram.com/language/ref/FormControl.html.

Text

Wolfram Research (2016), FormControl, Wolfram Language function, https://reference.wolfram.com/language/ref/FormControl.html.

CMS

Wolfram Language. 2016. "FormControl." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/FormControl.html.

APA

Wolfram Language. (2016). FormControl. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FormControl.html

BibTeX

@misc{reference.wolfram_2025_formcontrol, author="Wolfram Research", title="{FormControl}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/FormControl.html}", note=[Accessed: 12-April-2025 ]}

BibLaTeX

@online{reference.wolfram_2025_formcontrol, organization={Wolfram Research}, title={FormControl}, year={2016}, url={https://reference.wolfram.com/language/ref/FormControl.html}, note=[Accessed: 12-April-2025 ]}

Top [フレーム]

AltStyle によって変換されたページ (->オリジナル) /