Wolfram Language & System 11.0 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

FormPage

FormPage[formspec,func]
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.

FormPage[{"name1"type1,},func]
represents an active form page with fields named namei interpreted as types typei.

FormPage[{{"name1",label1}type1,},func]
uses labeli as the label for the field named namei.

FormPage[{namespec1type1default1,},func]
uses defaulti as the default for the field specified by namespeci.

FormPage[formspec,func,form]
lays out the page according to the layout specification form.

FormPage[formspec,func,initformresform]
uses initform as the initial layout specification and resform as the layout specification for result pages.

Details and OptionsDetails 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.
  • Possible layout specifications include:
  • "ResultBelow"display results below the form
    "ResultAbove"display results above the form
    {elem1,elem2,}display layout elements in the specified order
  • Possible layout elements 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:
  • AppearanceRulesAutomaticassociation giving overall appearance rules
    FormLayoutFunctionAutomaticfunction to generate layout for the form
    PageThemeAutomaticoverall theme to use for the form
    ImageFormattingWidth$ImageFormattingWidthwrapping width for output formatting
    ImageSizeAutomaticoverall image size for output

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

Use FormPage to continuously interact with a webpage:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2015
(10.3)