I have a pdf template that I am trying to populate with SyncFusion
and C#
. When i load the pdf, my radio button is in PdfLoadedRadioButtonListField
I can set the selected if i use an int
based index. This means that if new items are added to the PDF then I have to change my application to determine which index matches the correct radio button item label.
Is it possible to set the selected value based on the label/description of the radio button with SyncFusion?
PdfLoadedRadioButtonItemCollection radiobuttonFieldCollection = radiobuttonField.Items;
Radio button field item
PdfLoadedRadioButtonItem radiobuttonItem1 = radiobuttonFieldCollection[3];
radiobuttonItem1.Checked = true;
form.Fields[3].Flatten = true;