Share:
Developers » Script Objects & Methods » ScriptCustomField

PREVIOUS  |  NEXT

ScriptCustomField


The following table lists the available methods on the ScriptCustomField object:

Return TypeMethodExplanation
StringgetSystemId()Returns the system ID of the custom field
StringgetName()Returns the name of the custom field
ObjectgetValue()Returns the custom field value
StringgetLabel()Returns the label
StringgetSelectedLabels()Returns the selected labels for custom fields with predefined values, such as radio buttons and checkboxes
BooleanisSelectedAny(Object value)

Returns true if at least one value of the custom field is selected. The value can be a:

  • String: Multiple values are separated by a comma
  • List: List that contains string objects
  • Array: Array of String objects
BooleanisSelectedAll(Object value)Returns true if all values of the custom field are selected. The value can be a:
  • String: Multiple values are separated by a comma
  • List: List that contains string objects
  • Array: Array of String objects
BooleanisSelected(Object)Returns true if the value of the custom field is selected
VoidsetValue(Object value)Sets the custom field value and performs all necessary validations