WebTextField.FieldType

From Xojo Documentation

Revision as of 16:40, 12 November 2020 by Gperlman (talk | contribs) (Notes)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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