AppearanceRules

AppearanceRules
is an option for FormObject, FormFunction, and similar functions that gives rules for the appearance of a form.

DetailsDetails

  • The setting for AppearanceRules can be an association or a list of rules.
  • Typical elements in the setting for AppearanceRules include:
  • "Title"Noneoverall title for the form
    "Description"Nonedescription to include at the top of the form
    "RequiredFieldIndicator"Noneindicator to show required fields
    "SubmitLabel""Submit"text for the submit button
    "CancelLabel""Cancel"text for the cancel button
    "ItemLayout""Horizontal"layout for a single element
  • Possible values for are: , , and .

ExamplesExamplesopen allclose all

Basic Examples  (4)Basic Examples  (4)

Make a form with a title and description:

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

Lay out items vertically:

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

Lay out items inline:

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

Specify custom labels for the submit and cancel buttons:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2014
(10.0)