# Auto-commit Data

## Content

InputPanel allows you to automatically save the data without having to click the OK button. The auto-commit feature is supported in InputPanel through the [AutoCommit](/componentone/api/wpf/online-inputpanel/dotnet-framework-api/C1.WPF.InputPanel.4.6.2/C1.WPF.InputPanel.C1InputPanel.AutoCommit.html) property of the [C1InputPanel](/componentone/api/wpf/online-inputpanel/dotnet-framework-api/C1.WPF.InputPanel.4.6.2/C1.WPF.InputPanel.C1InputPanel.html) class, which automatically saves the data after every input and is set to **true** by default. However, you can set the AutoCommit property to **false** for saving the edits after some confirmation or on clicking the OK button.

You can set the value of AutoCommit property in XAML as well as code view.

### In XAML

To set the value of the AutoCommit property in XAML view, use the following code.

```xml
<InputPanel:C1InputPanel x:Name="InPanel" AutoCommit="False"/>
```

### In Code

To set the value of the AutoCommit property in code view, use the following code.

```vbnet
InPanel.AutoCommit = False
```

```csharp
InPanel.AutoCommit = false;
```

## See Also

[Auto-generate Fields](/componentone/docs/wpf/online-inputpanel/Features/Autogenerate-Fields)

[Keyboard Navigation](/componentone/docs/wpf/online-inputpanel/Features/Keyboard-Navigation)

[Record Navigation](/componentone/docs/wpf/online-inputpanel/Features/Record-Navigation)