Forum.Nokia.com3.6WML Input Processing3.6.1Input elementsFigure 9: Input element – focus is in the input box with numeric format.An input element specifies a text entry object for data input. It is shown as an input box in a card. Thetext entered in the input element can be determined by the format attribute. The format stringspecifies that a particular character must be a number, an uppercase character, or a lowercasecharacter, for example.The user can enter any characters in the input field but the characters that do not currently match theformat are drawn in red color and are underlined (so that incorrect spaces or missing charactersbecome visible). In addition, every time the user enters a different type of input than the browser wasexpecting, an appropriate info message in an "Incorrect input dialog box" will be displayed. Allcharacters that do match the format are drawn in black (normal body text color).The author can specify a maximum length for the entry either with the format or with the maxlengthattribute. If the maximum length is reached, the input element will not insert any characters in thefield, but will beep and display an info message.The author can specify with the emptyok attribute that the entry must match the format mask. Ifthere are input elements that do have that requirement, but the entry in those elements does notmatch the mask (such as when the value is empty) and a task is initiated (either by a user action ortimer), the Missing Input dialog box will appear. Once the user has closed the dialog box, the focus willmove to the first of those input elements on the card. Note that the user can exit the card only if allinput elements have a valid value or if they are allowed to be empty.Please login: User name:format="*A" emptyok="false" maxlength="8"size="25"/> User password:Long"format="*A" emptyok="false" maxlength="16"size="25"/> WAP Service Developer’s Guide for Nokia 9200 Communicator Series18