SBM JavaScript Library Guide → Reference → Field Methods → MakeFieldRequired
Marks the specified field as 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 was hidden by the HideField method. The default value is true. |
Result | Value |
---|---|
(none) |
This example marks the Unit Price field as required:
MakeFieldRequired("Unit Price");
This example marks the Unit Price field as required but does not show it if it is hidden:
MakeFieldRequired("Unit Price", false);
(none)
Copyright © 2007–2016 Serena Software, Inc. All rights reserved.