Posted by a ceTe Software moderator
Hello,
You are getting -2 as page number because it is a container element that returns -1 as the page number. Elements that are not visible on any page will return a page number of -1. The actual radio buttons are probably child fields of the container element. You will need to loop through the child fields of the respective parent (container field) to get the page number.
If you continue facing an issue, then please send the following information to
support@dynamicpdf.com so we can look into it further.
1. Source PDF using which you are seeing this behavior.
2. Code sample which uses static data to recreate the behavior.
3. Exact version and build number of DynamicPDF Core Suite DLL file used in your application. You can find this information by right clicking on the DLL file>>Properties>>Details tab>>Product version. Take a screenshot of the Details tab and send it over to us.
Thanks,
ceTe Software Support Team