# AcroForms.FormChoiceField.CommitOnSelChange Property

> Specifies whether the form is submitted when the selected is changed.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 29.0
- **Namespace:** `TXTextControl.DocumentServer.PDF.AcroForms`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXDocumentServer.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDocumentServer.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl.DocumentServer.PDF > AcroForms.FormChoiceField.CommitOnSelChange Property
- **374 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-pdf/acroforms-formchoicefield/commitonselchange-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-pdf/acroforms-formchoicefield/commitonselchange-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-pdf/acroforms-formchoicefield/commitonselchange-property/llms-full.txt

---

### Description

Specifies whether the form is submitted when the selected is changed.

### Syntax

```csharp
public bool CommitOnSelChange { get; set; }
```

```vbnet
Public Property CommitOnSelChange As Boolean
```

### Examples

The following example uses `FormChoiceField.CommitOnSelChange` to configure commit on sel change as part of the form choice field workflow. The configured value is checked before the workflow continues.

```csharp
formChoiceField.CommitOnSelChange = true;
if (formChoiceField.CommitOnSelChange)
{
    Console.WriteLine("Form Choice Field: Commit On Sel Change is enabled.");
}
```

```vbnet
formChoiceField.CommitOnSelChange = True
If formChoiceField.CommitOnSelChange Then
    Console.WriteLine("Form Choice Field: Commit On Sel Change is enabled.")
End If
```

---

## Nearby

- **Previous:** [AcroForms.FormChoiceField.CanEdit Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-pdf/acroforms-formchoicefield/canedit-property/llms-full.txt)
- **Next:** [AcroForms.FormChoiceField Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-pdf/acroforms-formchoicefield/constructor/llms-full.txt)
