From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

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

New in 2020r1

Supported for all project types and targets.

Specifies the type of data the TextField will handle automatically.


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