On this page
Guides
Edit Form Fields
Retrieve and edit the appearance and content of form fields.
Note that the properties of different form field types may not be entirely consistent.
The steps to edit a form field are as follows:
Obtain the form object to be edited.
Modify the form properties.
Update the form appearance.
This example shows how to edit form fields:
java
CPDFTextWidget textWidget = (CPDFTextWidget) cpdfWidget;
textWidget.setFillColor(Color.RED);
textWidget.updateAp();
kotlin
val textWidget = myCPDFWidget as CPDFTextWidget
textWidget.setFillColor(Color.RED)
textWidget.updateAp()