Use this Property inspector to set the properties of a text field.
Every text field must have a unique name. The name you choose must uniquely identify the text field within the form. Form object names cannot contain spaces or special characters. You can use any combination of alphanumeric characters and an underscore (_). Note that the label you assign to the text field is the variable name that will store the value (the entered data) of the field. This is the value sent to the server for processing.
Char Width sets the maximum number of characters that can be displayed in the field. This number can be less than Max Chars, which specifies the maximum number of characters that can be entered in the field. For example, if the Char Width is set to 20 (the default value) and a user enters 100 characters, only 20 of those characters will be viewable in the text field. Note that even though you cannot view the characters in the field, they are recognized by the field object and will be sent to the server for processing.
Max Chars sets the maximum number of characters that can be entered in the field for single-line text fields. Use Max Chars to limit zip codes to 5 digits, limit passwords to 10 characters, and so on. If you leave the Max Chars text box blank, users can enter any amount of text. If the text exceeds the character width of the field the text will scroll. If a user exceeds the maximum number of characters, the form produces an alert sound.
Num Lines (available when the Multiline option is selected) sets the height of the field for multiple-line text fields.
Wrap (available when the Multiline option is selected) specifies how the users input will be displayed when the user enters more information than can be displayed within the defined text area. The wrap options are as follows:
Type designates the field as a single-line, multiple-line, or password field.
input
tag with its type
attribute set to text
. The Char Width setting maps to the size
attribute, and the Max Chars setting maps to the maxlength
attribute.input
tag with its type
attribute set to password
. The Char Width and Max Chars settings map to the same attributes as in single-line text fields. When a user types in a password text field, the input appears as bullets or asterisks to protect it from observation by others.textarea
tag. The Char Width setting maps to the cols
attribute, and the Num Lines setting maps to the rows
attribute.Init Value assigns the value displayed in the field when the form first loads. For example, you might indicate that the user enter information in the field by including a note or example value.
Class lets you apply CSS rules to the object.