SBM JavaScript Library Guide → Reference → Field Methods → MakeFieldOptional
Marks the specified field as optional (that is, not required), if it is not already marked as such. It updates the field and the label appropriately.
Name | Type | Description |
---|---|---|
fieldName | String | The name of the field. |
bShowIfHidden (optional) | Boolean | Show the field if it is currently hidden. The default value is true. |
Result | Value |
---|---|
(none) |
This example marks the Unit Price field as optional:
MakeFieldOptional("Unit Price");
This example marks the Unit Price field as optional but does not show it if it is hidden:
MakeFieldOptional("Unit Price", false);
(none)
Copyright © 2007–2018 Serena Software, Inc., a Micro Focus company. All rights reserved.