---
Product: Aspose.PDF
Platform: go
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/go/radiobuttonfield
---

# RadioButtonField

## Overview

`RadioButtonField` is a type in Aspose.PDF FOSS for Go.
Inherits from: `fieldBase`.

RadioButtonField is a group of mutually exclusive options.

This type declares 5 methods for RadioButtonField objects in Go programs.
Available methods include: `Options`, `SetReadOnly`, `SetRequired`, `SetValue`, `Value`.
Public members are accessible to any Go application after installing the Aspose.PDF FOSS for Go package.

## Methods

| Signature | Description |
|-----------|-------------|
| `Value()` → `string` | Returns the value. |
| `SetValue(s: string)` → `error` | SetValue takes the export name of the option to select. |
| `Options()` → `[]*RadioButtonOptionField` | Options returns one RadioButtonOptionField per widget in the group. |
| `SetReadOnly(v: bool)` | Sets the read only value. |
| `SetRequired(v: bool)` | Sets the required value. |

## See Also

- [Aspose.PDF — Enterprise API Reference](https://reference.aspose.com/pdf/)