OpenWGA 7.6 - WebTML reference

WebTML tags » input

<tml:input message ="validation-message">


Defines the validation message for a specified validation expression.


If a validation expression is specified for the current input field this attribute defines the message to display when the field contains an invalid value.

The message can be displayed by <tml:formmessages> or accessed by TML script via tmlform.getMessage().

If multiple validation rules has been defined the corresponding messages must be delimited by the divider specified in 'validationdivider'.

To put dynamic content for e.g. the entered field value in the message TMLScript-Scriptlets can be used.




Validating a number with dynamic message:
<tml:input name="x" type="number" validation="$P_VALUE>10" message="Your entered value {@=tmlform.x@} is not > 10"/>