Skip to main content
The following examples in this guide show how to configure SukiAuthManager and FormFillingClient in JavaScript and React. Before you begin, obtain your form_template_ids from your Suki support team. These are the template_id UUIDs enabled for your account. For the list of supported template types, refer to Form filling templates.

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 form_template_ids 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 for the full start() and <FormFilling> field reference Quickstart for a full walkthrough Basic usage example for session status UI with useFormFilling()
Last modified on July 24, 2026