To fill in the fields with data, you can use the getField() method to get a field by field name and then use the setValue() method to set the data. To set values in combo boxes and list fields, use values from the field’s export options and not the display options. To save the PDF document, you need to call the save method. This sample code uses Qoppa’s PDF library jPDFFields.
// setting gender radio button's value to "Female"
// setting combo box to "US"