Skip to main content

DocumentEditor Field Access

The DocumentEditor provides several convenient properties and methods to access and work with form fields programmatically.

Get Updated Document at Any Time

You can access the current document state in two ways: 1. Direct Access from DocumentEditor
2. From onChange Event
allFields - Get All Fields
field(fieldID:) - Get Specific Field
getFieldIdentifier - Field Context Access The getFieldIdentifier(for:) method provides complete context information about a field, which is essential for the Change API and field operations.

Change API

Programmatic updates to a JoyDoc via the editor. Apply multiple updates in one call. The Change API uses the change(changes:) method on DocumentEditor to apply programmatic updates to form fields. All changes are applied as an array of Change objects.
Supported Change Types Basic Field Update
Create table row example