Retaining Form State

An interactive PDF document contains various elements that constitute a form. These elements may include fields (to accept or display data), buttons (to trigger events), and scripts (commands to perform a specific action). Clicking a button may trigger an event that changes the state of a field. For example, choosing a gender option may change the color of a field or the appearance of the form. This is an example of a manual event causing the form state to change.

When such an interactive PDF document is flattened using the Output service, the state of the form is not retained. To ensure that the state of the form is retained even after the form is flattened, set the Boolean value retainPDFFormState to True to save and retain the state of the form.

// Ethnio survey code removed