OpenWGA 7.6 - TMLScript reference

TMLForm "tmlform"
Method :

field(name)

On object TMLForm "tmlform"
Usage Returns the value of a field.
Description This method only returns single values. If it is used to read a multi value fiend it only returns the first avalue. Use method tmlform.fieldList() to read multi value fields.

There is a shortform syntax for this method documented on the TMLForm object.
Parameters name (String):
Name of the field
Return value Value of the field or null if it does not exist
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
    portletevent