OpenWGA 7.6 - TMLScript reference

TMLForm "tmlform"
Property :

messages

On object TMLForm "tmlform"
Usage Lists all current validation messages
Description These are the messages of all validations that failed on the last validation run.

On normal WebTML forms the validation messages only persist for the current request. You can call tmlform.validate() or one of the tmlform.storeIn... methods to trigger it and then use the resulting validation messages in the same request of that operation. These messages are gone on the next request and validation must be repeated to create a new messages list.

The list is empty if no validation was triggered in the current request.
Writable False
Return value List of validation messages (String)
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
    portletevent