The content of the dictionary is appropriate to your business need.
This validation precedes any others, but is active only after the text box gains focus after having lost focus.
If the inputRequiredMessage property is not present, the error message is the following string, as appropriate to the locale: “This value is required”.
The sequence of validators is invoked when the widget loses focus.
If the Dojo currency text box is referenced by a controller, you can code controller-specific validator functions, which are wholly separate from the functions being described. The controller-specific functions are invoked only if the field-specific validation is successful and only after the widget loses focus.
For details on controllers, see “Rich UI validation and formatting.”
Delegate Validator(input String in, constraints dictionary in)
returns(string?) end
You might want to invoke, from your validator, one or more of the functions provided in the DojoLib library.
function showErrorIndicator(aboolean boolean in);
function showErrorMessage(msg string in);
Other supported properties and functions are described in “Widget properties and functions” and “Widget styles.”