OpenWGA 7.6 - TMLScript reference

TMLForm "tmlform"
Method :

getMessage(fieldname)

On object TMLForm "tmlform"
Usage Returns the validation message of a field with failed validation
Description This method is used to retrieve field specific validation messages in TMLScript. You can use it to display those in the direct vincity of the field itself.

There may only be one field specific validation message per field at one time.
Parameters fieldname (String):
Name of the field
Return value A validation message if one exists, null if not (String)
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
    portletevent