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:

In[1]:=
Click for copyable input
Out[1]=

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

In[1]:=
Click for copyable input
Out[1]=

Scope  (1)

Properties & Relations  (2)

See Also

InputField  Manipulate  FormObject  FormFunction  FormPage  Grid

Introduced in 2016
(11.0)