OpenWGA 7.0 - TMLScript reference

FormInfo
Property :

source

On object FormInfo
Usage Controls the data source of the WebTML form to create
Description This is the TMLScript pendant of <tml:form> attribute source, controlling where the form initializes its data from and where it can be stored automatically. Use the same values that are usable on the attribute.

The source setting of a WebTML form will only get effective if it is displayed in WebTML by a <tml:form> tag.  When a form is created in TMLScript it stays empty, no matter the source setting. The initialisation of fields with their source values happens later when they are displayed via <tml:input> tags.
Default value "content"
Writable True
Return value Data source of the WebTML form (String)
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
    portletevent