Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Getting selected radio button option

$
0
0
Hi Team,

How do I get the selected RadioButtonOptionField caption from the form fields? I am using the below code to loop through all the form fields and the Value returned for a RadioButtonForm field is just the name of the field and not the actual caption.

using (asposePdf.Document pdf = new asposePdf.Document(txtPdfPath.Text))
            {
                asposeFacades.Form pdfForm = new asposeFacades.Form(pdf);

                foreach (asposeForms.Field field in pdf.Form)
                {
                    Console.WriteLine("Field Name : {0} ", field.PartialName);
                    Console.WriteLine("Field full name : {0} ", field.FullName);
                    Console.WriteLine("Value : {0} ", field.Value);
                }
            }

Viewing all articles
Browse latest Browse all 3131

Trending Articles