Skip to main content
The following examples in this guide show how to configure SukiAuthManager and FormFillingClient in JavaScript and React. Before you begin, prefer forms. Obtain static template_id UUIDs from your Suki support team and/or define partner schema entries. Refer to Form filling templates and Dynamic Form filling.

What each step does

1

Authenticate

Create SukiAuthManager with your partnerId, partnerToken, and environment. The SDK signs in before the Form filling interface can open.
2

Create the Client

Pass the auth manager to new FormFillingClient({ authManager }). Create this once per page and reuse it for every session. Optionally add onError to log configuration or runtime errors.
3

Open a Session

Call client.start() or render FormFilling with forms and onSubmit. Pass your encounter ID as correlation_id so results map to the right patient record. In JavaScript, also pass rootElement and give that container explicit height.
HTML
JavaScript
  • In React, create FormFillingClient inside useMemo so you do not build a new client on every render. Mount FormFilling only while Form filling should be visible.
  • Always implement onSubmit. It runs when structured JSON is ready after processing, not when the clinician taps submit.

Next steps

Configuration - full start() and FormFilling field reference. Quickstart - A full walkthrough. Basic usage example - Session status UI with useFormFilling().
Last modified on October 16, 2026