FormFunction[formspec,func]
represents an active form that, when submitted, applies func to the values obtained from the form specified by formspec.
FormFunction[{"name1"type1,…},func]
represents an active form with fields named namei interpreted as types typei.
FormFunction[{{"name1",label1}type1,…},func]
uses labeli as the label for the field named namei.
FormFunction[{namespec1type1default1,…},func]
uses defaulti as the default for the field specified by namespeci.
FormFunction[formspec,func,fmt]
specifies that in the cloud, the result from applying func should be returned in format fmt.
FormFunction[{formspec1,formspec2,…},func,…]
represents a multipage form, in which the successive formspeci can be functions that are applied to the values obtained so far.
FormFunction
Listing of Field Types »FormFunction[formspec,func]
represents an active form that, when submitted, applies func to the values obtained from the form specified by formspec.
FormFunction[{"name1"type1,…},func]
represents an active form with fields named namei interpreted as types typei.
FormFunction[{{"name1",label1}type1,…},func]
uses labeli as the label for the field named namei.
FormFunction[{namespec1type1default1,…},func]
uses defaulti as the default for the field specified by namespeci.
FormFunction[formspec,func,fmt]
specifies that in the cloud, the result from applying func should be returned in format fmt.
FormFunction[{formspec1,formspec2,…},func,…]
represents a multipage form, in which the successive formspeci can be functions that are applied to the values obtained so far.
Details and Options
- FormFunction[formspec,func] displays the form specified by formspec, together with a "submit" button.
- In FormFunction[formspec,func], formspec can be FormObject[…].
- FormFunction[formspec,func] evaluates to give FormFunction[FormObject[…],func], where the FormObject contains full specifications for all fields in the form.
- CloudDeploy[FormFunction[…]] yields a cloud object containing an active version of the form.
- FormFunction[formspec,func][] evaluates by first evaluating Setting[formspec] to give an association of values for fields in the form. If no validation errors are generated, func is applied to the association, and the result is returned.
- FormFunction[formspec,func][<|"namek"->inputk,…|>] inserts the inputs given into the form specified by FormFunction before evaluating the effect of the FormFunction.