# Global

##

### Methods

#### all() → {Object}

Get all field values as an object { fieldName: numericValue }.

Source:
  - scripts.js, line 1751

##### Returns:

Type
  Object

#### get(name) → {Number}

Get the numeric value of a field. Auto-resolves repeater suffix.

##### Parameters:

Name | Type | Description
--- | --- | ---
`name` | String | The original field name

Source:
  - scripts.js, line 1734

##### Returns:

Type
  Number

#### raw(name) → {String|Array}

Get the raw value of a field. Auto-resolves repeater suffix.

##### Parameters:

Name | Type | Description
--- | --- | ---
`name` | String | The original field name

Source:
  - scripts.js, line 1742

##### Returns:

Type
  String | Array

#### suffix() → {String}

Get the repeater suffix for this calculated field's context.

Source:
  - scripts.js, line 1791

##### Returns:

Type
  String

#### sum(name) → {Number}

Sum a field's numeric value across all repeater subs. E.g. fields.sum('quantity') sums quantity__1, quantity__2, etc.

##### Parameters:

Name | Type | Description
--- | --- | ---
`name` | String | The original (unsuffixed) field name

Source:
  - scripts.js, line 1768

##### Returns:

Type
  Number