OpenWGA 7.0 - TMLScript reference

TMLForm "tmlform"
Method :

enteredValue(fieldname)

On object TMLForm "tmlform"
Usage Returns the unprocessed value of a field like the user entered it
Description This is the value like it was posted with the form before any type conversion or other processing functionality was done on it.

As inputs on a HTML form are at first always strings this method only serves the entered values in string form, even if the target value type is different like date or number.
Parameters fieldname (String):
Name of the field
Return value User input of the field, either a String with single value inputs or a List of Strings on multi value inputs
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
    portletevent