OpenWGA 7.11 - TMLScript reference

TMLForm "tmlform"
Method :

setMessage(fieldname, msg)

On object TMLForm "tmlform"
Usage Adds a new validation message related to the specified input field.
Description This method adds custom validation messages to the validation result of the WebTML form that are stored per input field. You can use it if you are performing additional manual validations in TMLScript and want to display their result as normal WebTML form validation message.
Parameters fieldName (String):
Name of the form field to assign the message to. If omitted this will be a global message.

msg (String):
Message to register
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions