Deselect All Radio Button Options

Hi,

Is there a way to deselect radio buttons with Aspose PDF? I am trying the following, but I end up with a radio button option still selected.

foreach (var field in pdfDocument.Form.Fields)
{
	if (field is RadioButtonField)
	{
		foreach (var option in ((RadioButtonField)field).Options)
		{
			option.Selected = false;
		}
	}
}

@oliver.c

You cannot uncheck a radio button if it is already checked. In order to deal with such case, you can add a third option with the caption of “None” if it suits you.