Hello 1T3XT BVBA,

Thanks again for the quick reply. First, I forgot to thank you for telling
me in which pages were the solution to my problem. Sorry and thanks. I'm
reading the pages you pointed me right now. I'll be more careful from now
on.

In my previous post, also forgot to mention that the names cited are in one
of the pdf files that I am working. I got these names through debug and I
can not say that will be the same for any document, as they are produced and
completed externally. I already get them filled and flatened.

From what I read so far, on page 182, it is shown that I can get the values โ€‹
of the states of appearances of checkbox and radio buttons from the line

form.getAppearanceStates ("CP_1");

Where CP_1 is the name of a component.

If it's a checkbox, this line tells me the value representing each of the
two possible states.
In the case of radio button, this line tells me what are the values โ€‹โ€‹of
each group member.

These pages have helped me to start thinking about the solution. Thank you.

But I still have the problem of knowing which option was selected.
And why the line fields.getField ("P1_CB1") returns null whenever I pass the
name of a checkbox.

Thanks for the support.



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/How-to-manipulate-and-get-the-value-of-checkbox-and-radio-button-groups-tp4656269p4656273.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to