Control-level event handler

Each text box has a behavior class associated with it that dynamically attaches a validation method to the onblur event (lost focus).

Each XML attribute must be tied to a data type and the infrastructure determines the data type based upon the XML attribute to which a data element is bound. The data type is used for data validations. For example, numeric fields should only accept numeric entry.

It is recommended that you limit client-side field-level validations to a minimum. You can directly use onblur="myValFun();" in your HTML pages to perform custom validations. However, there is no guarantee that your function is called before the Presentation Framework function. Therefore, if you are using a numeric or date field, your function may return invalid data. You must call the Presentation Framework JavaScript utility functions to first validate the date and number before you proceed with your validations.