Skip to end of banner
Go to start of banner

BA_createTextArea

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Current »

Syntax

BA_createTextArea(label, defaultValue, isDisabled [, rows[, isRequired, fieldDescription]])

Description

Creates a text area suitable for longer text values like comments.

Parameters

Parameter name

Type

Required

Description

label

string

Yes

Field label

defaultValue

string

Yes

Specifies a default value for the text area

isDisabledbooleanYesSpecifies whether the input should be read-only or not.
rowsnumberNo

The initial height of the text area (defaults to 5).
Certain browsers allow resizing.

isRequiredbooleanNoSpecifies whether the field should be marked as required with a dark red asterisk. Note that marking the field as required does not add any validation.
fieldDescriptionstringNoA description of the field to be displayed under the input box.

Return type

string []

Examples

BA_createTextArea("text 1", "", false , 5, false, "description 1");
BA_createTextArea("text 2", "mini textarea", false , 2, false, "description 2");
BA_createTextArea("text 3", "maxi textarea", true , 10, false, "description 3");

  • No labels