# RowFormApi

Canonical page: https://www.adaptabletools.com/docs/reference/rowformapi

Row Forms. Opens the form used to create, clone or edit a row, and deletes a row by primary key.
Deleting does not open a form.

```ts title="TypeScript"
export interface RowFormApi 
```

## Methods

| Method | Returns | Description |
| --- | --- | --- |
| [displayCloneRowForm(primaryKey)](https://www.adaptabletools.com/docs/reference/rowformapi.md#displayclonerowform) | `Promise<void>` | Opens the Row Form to create a row, prefilled from an existing row. |
| [displayCreateRowForm()](https://www.adaptabletools.com/docs/reference/rowformapi.md#displaycreaterowform) | `Promise<void>` | Open create dialog for a new row |
| [displayDeleteRowForm(primaryKey)](https://www.adaptabletools.com/docs/reference/rowformapi.md#displaydeleterowform) | `void` | Deletes a row and fires the Row Form submitted event. No form is shown. |
| [displayEditRowForm(primaryKey)](https://www.adaptabletools.com/docs/reference/rowformapi.md#displayeditrowform) | `Promise<void>` | Opens the Row Form to edit the row with this primary key. |

## Method Details

### displayCloneRowForm

Opens the Row Form to create a row, prefilled from an existing row.

```ts title="TypeScript"
displayCloneRowForm(primaryKey?: any): Promise<void>;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| primaryKey | `any` | Primary key of the row to clone. Omit it to open an empty clone form |

###### Returns

`Promise<void>`

### displayCreateRowForm

Open create dialog for a new row

```ts title="TypeScript"
displayCreateRowForm(): Promise<void>;
```

###### Returns

`Promise<void>`

### displayDeleteRowForm

Deletes a row and fires the Row Form submitted event. No form is shown.

```ts title="TypeScript"
displayDeleteRowForm(primaryKey?: any): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| primaryKey | `any` | Primary key of the row to delete |

###### Returns

`void`

### displayEditRowForm

Opens the Row Form to edit the row with this primary key.

```ts title="TypeScript"
displayEditRowForm(primaryKey: any): Promise<void>;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| primaryKey | `any` | Primary key of the row to edit |

###### Returns

`Promise<void>`
