OpenWGA 7.11 - TMLScript reference

TMLForm "tmlform"
Method :


On object TMLForm "tmlform"
Usage Stores the fields of the form to a content document
Description This transfers all the field data of the WebTML form to items of the content document and saves them.

If the form was created with source type "content" you can omit the parameter to let the form store its fields in the content document that it initially retrieved its data from. However for this usage scheme you should use the dedicated method instead.

This call implicitly triggers the form validation. If validation fails the save is canceled and this method returns false. If saving failed because of some other cause this method throws an error.

This method does not transfer uploaded files to the document. Use tmlform.attach() for this task.
Parameters content (WGAPI object WGContent, optional):
The content document where the data is stored
Return value true if validation succeeded, false if not (Boolean)
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions