# PushButtonField Class

The `PushButtonField` class corresponds to the `FormFieldType.PushButton` enum value and represents a simple button that you can click with the mouse. This is the only field that does not preserve any data. It is typically used to execute an action on mouse click. For the actions supported by RadPdfProcessing, see the [Links](https://www.telerik.com/document-processing-libraries/documentation/libraries/radpdfprocessing/model/annotations/links#action) article.

## Properties

`PushButtonField` provides a single property called `Widgets`. It represents the collection of Widget annotations, which visualize the field on the PDF pages. You can add and remove widgets from the collection with the `AddWidget()` and `Remove()` methods. The widget collection implements the `IEnumerable` interface, so you can iterate the available widget instances.

**Create a PushButtonField and add it to a page**

```C#
PushButtonField pushButtonField = new PushButtonField("SamplePushButton");

PushButtonWidget widget = pushButtonField.Widgets.AddWidget();
widget.Rect = new Rect(0, 0, 250, 50);
widget.HighlightingMode = HighlightingMode.InvertBorderOfAnnotationRectangle;

widget.AppearanceCharacteristics.Background = new RgbColor(123, 165, 134);
widget.AppearanceCharacteristics.NormalCaption = "Click here";

widget.TextProperties.FontSize = 20;
widget.TextProperties.Font = FontsRepository.Courier;
widget.TextProperties.Fill = new RgbColor(0, 0, 0);
widget.RecalculateContent();

document.AcroForm.FormFields.Add(pushButtonField);
document.Pages[0].Annotations.Add(widget);
```

> important In **.NET Standard/.NET (Target OS: None)** environments, fonts beyond the [14 standard ones](https://www.telerik.com/document-processing-libraries/documentation/libraries/radpdfprocessing/concepts/fonts#standard-fonts) require a [FontsProvider implementation](https://www.telerik.com/document-processing-libraries/documentation/knowledge-base/pdfprocessing-implement-fontsprovider) to be resolved correctly.

## See Also

* [FormField](https://www.telerik.com/document-processing-libraries/documentation/libraries/radpdfprocessing/model/interactive-forms/form-fields/formfields)
* [PDF Annotation Widgets](https://www.telerik.com/document-processing-libraries/documentation/libraries/radpdfprocessing/model/annotations/widgets)
* [Create Interactive Forms SDK example](https://github.com/telerik/document-processing-sdk/tree/master/PdfProcessing/CreateInteractiveForms)
* [Modifying Forms SDK example](https://github.com/telerik/document-processing-sdk/tree/master/PdfProcessing/ModifyForms)
