Returns a dynamic html name for the field. It can be used to suppress any autocompletion
support from a browser, e.g. for credit card related fields. It can be also
used for a unique form name, if one form is used multiple times in a page.
Provides a combined view on the validation status as per isValid() and getError(). In
addition it also provides the data as returned by the validation in case a validation
script was used.
Method Details
clearFormElement()
clearFormElement(): void
This method clears the whole form. After clearing a form it
contains no value or the default value, is not bound to any business
object and has the status of being valid.
Returns a dynamic html name for the field. It can be used to suppress any autocompletion
support from a browser, e.g. for credit card related fields. It can be also
used for a unique form name, if one form is used multiple times in a page.
Provides a combined view on the validation status as per isValid() and getError(). In
addition it also provides the data as returned by the validation in case a validation
script was used.
Returns:
the validation status (valid, error, data)
invalidateFormElement()
invalidateFormElement(): void
The method can be called to explicitly invalidate a form element. The
error text will be set to the one of two possible preconfigured custom
error messages associated with the form definition. The "value-error"
message will be used for FormField instances and "form-error" will be
used for FormGroup instances.