# Global

##

### Methods

#### repeaterAddSub($form, repeaterDataId)

Append a new sub-entry to the repeater with the name `repeaterDataId` inside the form `$form`

##### Parameters:

Name | Type | Description
--- | --- | ---
`$form` | String | JQuery | JQuery object or css-selector representing the form
`repeaterDataId` | String | data-id attribute of the repeater. Normally this is simply the name of the repeater. However, in case of a nested repeater you need to append the name with the correct suffix. For example `my-nested-repeater__1__3`. Hint (check the `data-id` attribute in the HTML code to find the correct suffix)

Source:
  - scripts_es6.js, line 1355