WebTextField.FieldType

From Xojo Documentation

aWebTextField.FieldType = newWebTextField.FieldTypesValue
or
WebTextField.FieldTypesValue = aWebTextField.FieldType

New in 2020r1

Supported for all project types and targets.

Specifies the type of data the TextField will handle automatically.

Notes

It is up to the browser to decide when to support this. For example, Safari tends to support it only for mobile.

See FieldTypes for a list of possible types.

Sample Code

Allow numbers only:

Me.FieldType = WebTextField.FieldTypes.Number