SBM JavaScript Library Guide → Reference → Field Methods → SetLabelText
Sets the current text of the specified label.
| Name | Type | Description | 
|---|---|---|
| fieldName | String | The name of the field. | 
| Text | String | The text to set on the label. This method automatically adds a colon (:) and an asterisk * (for "required") as appropriate. | 
| Result | Value | 
|---|---|
| (none) | 
This example sets the text of the label:
SetLabelText("Unit Price", "Price/Unit");
    (none)
Copyright © 2007–2018 Serena Software, Inc., a Micro Focus company. All rights reserved.