setButtonValue

fun setButtonValue(field: PdfFormField, exportValue: String)

Set a button field (/Btn) to a named export value, the mechanism behind checkboxes and radio groups. The field's /V becomes the chosen on-state name; every widget's /AS is set to that name when the widget defines it as an appearance state, or to /Off otherwise (so sibling radios in the group are cleared). Pass "Off" to clear the field.