Converting a Text field to a Textarea field for Domino Web Users Standard text fields in Domino are displayed on a web browser using the input html tag when the form is in edit mode. This will display one line for input as shown in the following image. The length of this input field can be modified using the html attributes and setting the length attribute to a given number of characters.
Procedure: Turning a Field into a Textarea
This technique sets the field to allow multiple values. This means that a single piece of data may be saved on the Notes document as a list of values. For instance, if the user was entering a product description, and used a carriage return to enter it on two lines, those two lines will be considered separate values by Domino if the field's properties were set as shown above.
To eliminate this problem, use an Input Translation formula for the field to convert multiple values back to a single value. This is easily done using the @Implode function, as in:
The Textarea HTML Tag
Textareas are one of the few types of input object that does not use the <input> tag. Instead, they use their own tag, <textarea>. Here's an example of a textarea tag:
The <textarea> tag has one required attribute, name. Like the name attribute of an input tag, this attribute identifies the textarea to the browser. Its value is taken from the name of the Domino field.
Textareas do not have a "value" attribute for specifying a default value. Instead, the result of the Domino default value formula will be inserted between the opening and closing <textarea> tags, as shown in the example above.
The rows and cols attributes are used to indicated the display size of the textarea. For instance, if rows=20 is specified, the textarea will be twenty lines of text high. If cols=50 is specified, the textarea will be fifty characters wide. Set the HTML Attributes as shown in the following image: