How to Check a Check Box using AcroFields
- From: bruno <bruno (at) lowagie.com>
- Date: Thu, 29 Jun 2006 10:12:07 +0200
Henry Doan wrote:
> I know how to fill out a field using AcroFields.setFields() but how do
> u check a check box?
<>First you need to know what different 'states' are available for the
checkbox.
String[] states = form.getAppearanceStates(field_name);
If this array contains the values "On" and "Off", you can set the state
like this:
<>form.setField(field_name, "On");
or
form.setField(field_name, "Off");
br,
Bruno
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions (at) lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions