# RowFormOptions

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

Options related to Dynamic Row Forms in AdapTable

```ts title="TypeScript"
export interface RowFormOptions<TData = any> 
```

## Properties

| Property | Type | Description | Default |
| --- | --- | --- | --- |
| [autoHandle](https://www.adaptabletools.com/docs/reference/rowformoptions.md#autohandle) | `boolean` | Whether AdapTable automatically updates AG Grid data model with created/edited/deleted rows | true |
| [disableInlineEditing](https://www.adaptabletools.com/docs/reference/rowformoptions.md#disableinlineediting) | `boolean` | Prevents direct editing in Grid cells even for editable columns | false |
| [includeColumnInRowForm](https://www.adaptabletools.com/docs/reference/rowformoptions.md#includecolumninrowform) | `(rowFormColumnContext: `[`RowFormColumnContext`](https://www.adaptabletools.com/docs/reference/rowformcolumncontext.md)`) => boolean` | Is given Column displayed in Row Form | true |
| [onRowFormSubmit](https://www.adaptabletools.com/docs/reference/rowformoptions.md#onrowformsubmit) | `(rowFormSubmittedInfo: `[`RowFormSubmittedInfo`](https://www.adaptabletools.com/docs/reference/rowformsubmittedinfo.md)`<TData>) => void` | Event fired when a Row Form is submitted via a standard button provided by AdapTable; this is not invoked when custom form buttons are provided | undefined |
| [rowFormButtons](https://www.adaptabletools.com/docs/reference/rowformoptions.md#rowformbuttons) | [`AdaptableButton`](https://www.adaptabletools.com/docs/reference/adaptablebutton.md)`<`[`RowFormContext`](https://www.adaptabletools.com/docs/reference/rowformcontext.md)`<TData>>[]` | Custom form buttons; if provided, need to handle form submission explicitly |   |
| [rowFormDescription](https://www.adaptabletools.com/docs/reference/rowformoptions.md#rowformdescription) | `string \| ((context: `[`RowFormTitleContext`](https://www.adaptabletools.com/docs/reference/rowformtitlecontext.md)`<TData>) => string)` | Custom form description provider | undefined |
| [rowFormField](https://www.adaptabletools.com/docs/reference/rowformoptions.md#rowformfield) | `(context: `[`RowFormFieldContext`](https://www.adaptabletools.com/docs/reference/rowformfieldcontext.md)`<TData>) => Partial<`[`AdaptableFormField`](https://www.adaptabletools.com/docs/reference/adaptableformfield.md)`> \| undefined` | Per-column override for the auto-built .<br/><br/>Return any subset of `AdaptableFormField` properties to customise the<br/>field for a particular column. Anything you don&#39;t return falls back to<br/>AdapTable&#39;s default - which is derived from the column&#39;s data type<br/>(string → `text`, number → `number`, boolean → `checkbox`, date →<br/>`date`, columns with discrete options → `select`).<br/><br/>Returning `undefined` keeps the default field for that column.<br/><br/>Use this to unlock the full power of  in<br/>Row Forms - including:<br/>- presentation (`placeholder`, `helpText`, `tooltip`)<br/>- validation (`required`, `min`, `max`, `pattern`, `validate`)<br/>- data-driven `hidden` / `disabled`<br/>- alternative field types (`textarea`, `radio`, `slider`, `time`,<br/> `datetime`, `color`)<br/>- multi-select via `multi: true`<br/>- bespoke widgets via `fieldType: 'custom'` + `render` | undefined |
| [rowFormFieldLabel](https://www.adaptabletools.com/docs/reference/rowformoptions.md#rowformfieldlabel) | `(context: `[`RowFormFieldContext`](https://www.adaptabletools.com/docs/reference/rowformfieldcontext.md)`<TData>) => string` | Custom form field label provider.<br/><br/>Superseded by  (which can return any subset of<br/> properties, including `label`); kept for<br/>backward compatibility. | undefined |
| [rowFormTitle](https://www.adaptabletools.com/docs/reference/rowformoptions.md#rowformtitle) | `string \| ((context: `[`RowFormTitleContext`](https://www.adaptabletools.com/docs/reference/rowformtitlecontext.md)`<TData>) => string)` | Custom form title provider | &#39;Create New Row&#39;/&#39;Edit Row&#39; |
| [setPrimaryKeyValue](https://www.adaptabletools.com/docs/reference/rowformoptions.md#setprimarykeyvalue) | `(context: `[`SetPrimaryKeyValueContext`](https://www.adaptabletools.com/docs/reference/setprimarykeyvaluecontext.md)`<TData>) => any` | Function called when auto-handling &#39;create&#39; or &#39;clone&#39; Command Button; returned value should be valid for Primary Key column | undefined |

## Property Details

### autoHandle

Whether AdapTable automatically updates AG Grid data model with created/edited/deleted rows

```ts title="TypeScript"
autoHandle?: boolean;
```

###### Default Value

true

###### Property Value

`boolean`

### disableInlineEditing

Prevents direct editing in Grid cells even for editable columns

```ts title="TypeScript"
disableInlineEditing?: boolean;
```

###### Default Value

false

###### Property Value

`boolean`

### includeColumnInRowForm

Is given Column displayed in Row Form

```ts title="TypeScript"
includeColumnInRowForm?: (rowFormColumnContext: RowFormColumnContext) => boolean;
```

###### Default Value

true

###### Property Value

`(rowFormColumnContext: `[`RowFormColumnContext`](https://www.adaptabletools.com/docs/reference/rowformcolumncontext.md)`) => boolean`

### onRowFormSubmit

Event fired when a Row Form is submitted via a standard button provided by AdapTable; this is not invoked when custom form buttons are provided

```ts title="TypeScript"
onRowFormSubmit?: (rowFormSubmittedInfo: RowFormSubmittedInfo<TData>) => void;
```

###### Default Value

undefined

###### Property Value

`(rowFormSubmittedInfo: `[`RowFormSubmittedInfo`](https://www.adaptabletools.com/docs/reference/rowformsubmittedinfo.md)`<TData>) => void`

### rowFormButtons

Custom form buttons; if provided, need to handle form submission explicitly

```ts title="TypeScript"
rowFormButtons?: AdaptableButton<RowFormContext<TData>>[];
```

###### Property Value

[`AdaptableButton`](https://www.adaptabletools.com/docs/reference/adaptablebutton.md)`<`[`RowFormContext`](https://www.adaptabletools.com/docs/reference/rowformcontext.md)`<TData>>[]`

### rowFormDescription

Custom form description provider

```ts title="TypeScript"
rowFormDescription?: string | ((context: RowFormTitleContext<TData>) => string);
```

###### Default Value

undefined

###### Property Value

`string | ((context: `[`RowFormTitleContext`](https://www.adaptabletools.com/docs/reference/rowformtitlecontext.md)`<TData>) => string)`

### rowFormField

Per-column override for the auto-built .

Return any subset of `AdaptableFormField` properties to customise the
field for a particular column. Anything you don&#39;t return falls back to
AdapTable&#39;s default - which is derived from the column&#39;s data type
(string → `text`, number → `number`, boolean → `checkbox`, date →
`date`, columns with discrete options → `select`).

Returning `undefined` keeps the default field for that column.

Use this to unlock the full power of  in
Row Forms - including:
- presentation (`placeholder`, `helpText`, `tooltip`)
- validation (`required`, `min`, `max`, `pattern`, `validate`)
- data-driven `hidden` / `disabled`
- alternative field types (`textarea`, `radio`, `slider`, `time`,
 `datetime`, `color`)
- multi-select via `multi: true`
- bespoke widgets via `fieldType: 'custom'` + `render`

```ts title="TypeScript"
rowFormField?: (context: RowFormFieldContext<TData>) => Partial<AdaptableFormField> | undefined;
```

###### Default Value

undefined

###### Property Value

`(context: `[`RowFormFieldContext`](https://www.adaptabletools.com/docs/reference/rowformfieldcontext.md)`<TData>) => Partial<`[`AdaptableFormField`](https://www.adaptabletools.com/docs/reference/adaptableformfield.md)`> | undefined`

### rowFormFieldLabel

Custom form field label provider.

Superseded by  (which can return any subset of
 properties, including `label`); kept for
backward compatibility.

```ts title="TypeScript"
rowFormFieldLabel?: (context: RowFormFieldContext<TData>) => string;
```

###### Default Value

undefined

###### Property Value

`(context: `[`RowFormFieldContext`](https://www.adaptabletools.com/docs/reference/rowformfieldcontext.md)`<TData>) => string`

### rowFormTitle

Custom form title provider

```ts title="TypeScript"
rowFormTitle?: string | ((context: RowFormTitleContext<TData>) => string);
```

###### Default Value

&#39;Create New Row&#39;/&#39;Edit Row&#39;

###### Property Value

`string | ((context: `[`RowFormTitleContext`](https://www.adaptabletools.com/docs/reference/rowformtitlecontext.md)`<TData>) => string)`

### setPrimaryKeyValue

Function called when auto-handling &#39;create&#39; or &#39;clone&#39; Command Button; returned value should be valid for Primary Key column

```ts title="TypeScript"
setPrimaryKeyValue?: (context: SetPrimaryKeyValueContext<TData>) => any;
```

###### Default Value

undefined

###### Property Value

`(context: `[`SetPrimaryKeyValueContext`](https://www.adaptabletools.com/docs/reference/setprimarykeyvaluecontext.md)`<TData>) => any`
