# Global

##

### Methods

#### all() → {Object}

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

Source:
  - scripts.js, line 1736

##### 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 1719

##### 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 1727

##### Returns:

Type
  String | Array

#### suffix() → {String}

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

Source:
  - scripts.js, line 1776

##### 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 1753

##### Returns:

Type
  Number