OpenWGA 7.9 - TMLScript reference

WGA » WGA.Validate
Method :

isFilled([fieldname])

On object WGA.Validate
Usage Returns if a WebTML form field is filled
Description

This method performs the opposite test as WGA.Validate.isEmpty(). You could use "!WGA.Valdate.isEmpty()" instead in your scripts but using this method makes it easier to read and understand correctly, prevents errors and may have optimisations for this vice-versa test in the future.

See method WGA.Validate.isEmpty() what is regarded empty and therefor is "not filled".

Parameters

fieldname (String, optional):

Name of the WebTML field to test. In WebTML input validations this can be omitted to test the current field.

Return value true if the field is empty (Boolean)
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events