# Namespace: wpcf7cf

## wpcf7cf

Source:
  - scripts.js, line 1041

### Methods

#### (static) multistepMoveToStep($form, step)

Move to step number `step`, ignoring any validation.

##### Parameters:

Name | Type | Description
--- | --- | ---
`$form` | String | JQuery | JQuery object or css-selector representing the form
`step` | * |

Source:
  - scripts.js, line 1499

#### (static) multistepMoveToStepWithValidation($form, step)

Validate the current step, and move to step number `step` if validation passes.

##### Parameters:

Name | Type | Description
--- | --- | ---
`$form` | String | JQuery | JQuery object or css-selector representing the form
`step` | Number |

Source:
  - scripts.js, line 1510

#### (static) 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.js, line 1431

#### (static) repeaterAddSubAtIndex($form, repeaterDataId, index)

Insert a new sub-entry at the given `index` of 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.
`index` | Number | position where to insert the new sub-entry within the repeater

Source:
  - scripts.js, line 1451

#### (static) repeaterRemoveSub($form, repeaterDataId, index)

Remove the last sub-entry from the repeater with the data-id attribute of `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.
`index` | Number | position where to insert the new sub-entry within the repeater

Source:
  - scripts.js, line 1475

#### (static) repeaterRemoveSubAtIndex($form, repeaterDataId, index)

Remove the sub-entry at the given `index` of the repeater with the data-id attribute of `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.
`index` | Number | position where to insert the new sub-entry within the repeater

Source:
  - scripts.js, line 1463

#### (static) repeaterSetNumberOfSubs($form, repeaterDataId, numberOfSubs)

Set the number of subs for the repeater with the data-id attribute of `repeaterDataId` inside the form `$form`. Subs are either appended to or removed from the end of the repeater.

##### Parameters:

Name | Type | Description
--- | --- | ---
`$form` | String | JQuery | JQuery object or css-selector representing the form
`repeaterDataId` | String | data-id attribute of the repeater.
`numberOfSubs` | Number | position where to insert the new sub-entry within the repeater

Source:
  - scripts.js, line 1488