Creating Forms > About form fields > Text field properties |
To display text field properties in the Property inspector, select a text field in a form. See also Creating text fields.
Text Field assigns a name to the field. Every text field must have a unique name.
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.
Max Chars/Num Lines sets the maximum number of characters that can be entered in the field for single-line text fields and sets the height of the field for multiple-line text fields. Use Max Chars to limit zip codes to 5 digits, limit passwords to 10 characters, and so on.
Type designates the field as a single-line, multiple-line, or password field.
Choosing Single-line results in an 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. |
|
Choosing Password results in an 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. |
|
Choosing Multi-line results in a 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.