OpenWGA 7.6 - TMLScript reference

TMLForm "tmlform"
Method :

appendToField(name, value)

On object TMLForm "tmlform"
Usage Appends a value to the value list of a field
Description This method can be used to add values to multi value fields of the WebTML form. If the field does not exist yet it is created with the given value as single value. If the field is yet single valued it is converted to a multi value field.
Parameters name (String):
Name of the field

value (Object):
Value to append

Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
    portletevent