Newton FORM: Char Edit

This document illustrates how you might use a Newton 2.x protoCharEdit field within an HTML form. This could be useful for entry of short, fixed-length strings of specific types/patterns via handwriting (it does not support a keyboard). Approximately 12 characters fit on portrait MP2K/landscape MP130; longer strings that might not fit on desired screen size/orientation should probably use the usual INPUT TEXT or TEXTAREA input types (though I may look into supporting scrolling, and adding a label).

Note: You need to specify a VALUE or MAXLENGTH field unless you are using PHONECHAR, DATECHAR or TIMECHAR, or provide a TEMPLATE with a format slot. PHONECHAR and DATECHAR are not guaranteed to work (the built-in templates don't seem quite right). Default HEIGHT is 50.

Integer

See also: Integer Picker

Phone

See also: Phone/Fax Picker

Date

See also: Date Picker

Time

See also: Time Picker

Templates

You need to specify a TEMPLATE attribute for CHAR (see NTK docs) for this to work correctly as a fixed length field. If there is only one filter string, you can omit format and string slots (Newt's Cape will generate). A few examples.

UPPERCASE only. initial VALUE provides the length.

Alternating chars (AQZ) and digits (179), separated by (non-editable) commas.

Social Security (nnn-nn-nnnn)

Initial A-Z, followed by digits.


This document (in all its formats) is © 1997-2007. Steve Weyer. All Rights Reserved Worldwide. You are free to incorporate this into your own documents, but I would appreciate an acknowledgement of Newt's Cape and the example.

Last updated: Dec 2000