OpenWGA 7.6 - TMLScript reference

TMLForm "tmlform"
Method :

hasMessage(fieldname)

On object TMLForm "tmlform"
Usage Tests if a field specific validation message exists for the given field
Parameters fieldname (String):
Name of the field
Return value true if the field validation failed and a message exists, false if not (Boolean)
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
    portletevent