OpenWGA 7.7 - TMLScript reference

Design
Method :

createFormInfo(formId)

On object Design
Usage Creates a form info specifically for the current design
Description

The design for which a form info is created may influence the behaviour of WebTML forms created from this form info object. This method allows you to create a form info for a specific design and its settings.

This is especially necessary inside custom TMLScript objects as the normal creation method WGA.createFormInfo() would create it for the design of the running script, which may be from another app than the object.

Parameters

formId (String):

ID of the WebTML form to create

Return value A new FormInfo object
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events