Depending on the data being entered, a mobile device should display the keyboard that is
appropriate for the data.
There are a variety of keyboard types for mobile devices. A field dedicated to phone
number input should display a keyboard easying phone number input.
The
KEYBOARDHINT form field attribute provides a hint regarding the kind
of data the form field contains. Valid values include
DEFAULT,
EMAIL,
NUMBER, and
PHONE:
ATTRIBUTES
EDIT f01 = customer.cust_phone, KEYBOARDHINT = PHONE;
...
Although Genero mostly respects the provided hint, the variable data type that is bound
to the form field is also examined, to determine what keyboard to display:
- If the field is defined as a DATE or DATETIME
field, the date picker displays regardless of the KEYBOARDHINT
setting.
- If the field is a TEXT data, a text keyboard displays regardless of
the KEYBOARDHINT setting.
For more details, see KEYBOARDHINT attribute.