OpenWGA 7.9 - TMLScript reference

TMLForm "tmlform"
Method :

fieldList(name)

On object TMLForm "tmlform"
Usage Returns the values of a multi value field
Description This method always returns lists. If it is used to read a single value field it returns a list with the single value contained. To directly read single values use tmlform.field().
Parameters name (String):
Name of the field
Return value A List containing the values of the field, an empty list if the field does not exist
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
    portletevent