SBM JavaScript Library Guide → Reference → Field Methods → SetFieldValue
Sets the value of the specified field.
Name | Type | Description |
---|---|---|
fieldName | String | The name of the field. |
value | String |
The value to set on the field. The value is a string, with the
following exceptions:
If the field is a Multi-Group, Multi-Relational, Multi-Selection, or Multi-User field, the value is a string of comma-separated values. If the values have embedded commas, use the SetFieldValues method instead to return the array. |
fireEvent | Boolean | If this parameter is set to true, then setting the values causes the change event to fire. If this parameter is set to false, then the change event does not fire. |
Result | Value |
---|---|
(none) |
This example sets the string value of a Text field:
SetFieldValue("UNITPRICE", "1.45", true);
This example sets the string value of a Binary/Trinary field with three radio button choices:
SetFieldValue("RELEASETYPE", "Beta", true);
(none)
Copyright © 2007–2015 Serena Software, Inc. All rights reserved.