SBM JavaScript Library Guide → Reference → Field Methods → DisableField
Marks the specified field as disabled/read-only, if it is not already marked as such. It updates the field only, not the label.
Name | Type | Description |
---|---|---|
fieldName | String | The name of the field. |
bShowIfHidden (optional) | Boolean | Show the field and the label if they are currently hidden. The default value is true. |
Result | Value |
---|---|
(none) |
This example marks the Unit Price field as disabled/read-only:
DisableField("Unit Price");
(none)
Copyright © 2007–2019 Micro Focus or one of its affiliates. All rights reserved.