Frontend-Backend Integration
This page explains how form events flow from the user interface to your backend and back, and maps each FormHostProvider method to the backend handler that serves it.
Communication Flow
When a user interacts with a form:
- User Action — user clicks a button, changes a field, or interacts with a table
- SDK Event — the Buildocs UI Engine SDK detects the action and creates an event
- FormHostProvider — your
HostBridgemethod receives the event - Backend API — your handler calls your backend endpoint
- Business Logic — your backend processes the event and applies business rules
- Response — your backend returns
feCommandinstructions - SDK Execution — the SDK automatically executes the returned commands
- UI Updates — the form updates in real-time
For the full FormHostProvider implementation, useBuildocsApi reference, and customization patterns, see the FormHostProvider API Reference.
HostBridge → Backend Handler Map
Each method in your FormHostProvider HostBridge corresponds to a backend endpoint. The table below maps them and links to the full implementation guide for each.
| HostBridge method | Backend handler |
|---|---|
runFormEvent | RunEvent Handler |
runFormUploadFiles | Upload Files Handler |
runFormDeleteFileEvent | Delete File Handler |
runFormDownloadFileEvent | Download File Handler |
runFormGetLinkedFileEvent | Get Linked File Handler |
runFormGetLinkedFileMetaEvent | Get Linked File Meta Handler |
runFormGetLinkedFileByChunks | Get Linked File By Chunks |
Implementation Order
We recommend implementing backend handlers in this order:
- RunEvent Handler — start here, handles all form interactions
- Upload Files Handler — enable file uploads
- Get Linked File Meta Handler — add file metadata support
- Download File Handler — enable file downloads
- Delete File Handler — add file deletion
- Get Linked File Handler — small file previews (optional)
- Get Linked File By Chunks — large files and streaming (optional)