Data types

Input boxes on an HTML page must conform to specific constraints regarding field size and data type. For example, the size of an input box should correspond to the type of data being gathered. Likewise, each input box requires validations that correspond to the type of data the field is designed to gather (such as numeric, date, string, and so forth). For example, string fields must prevent the user from entering data longer than a specific length. The attribute used for binding a text box to an API output also resolves the data type and related properties such as size, decimal digits, and so forth.

The Presentation Framework has two APIs, getTextOptions() and yfsGetTextOptions() , that permit you not to have to explicitly set these attributes for each field. When you use these APIs for input boxes, they automatically take care of the data type-related attributes and validations.

These attribute definitions and mappings are contained in two files: