OneSDK Forms

In OneSDK for KYC, we described how you can work with the individual object to update the user details and submit a KYC check.

OneSDK also enables you to embed onboarding forms out of the box into your frontend application to capture user details, such as name, DOB, address, and GovID.

Just like other modules in OneSDK, the onboarding Form can be created when you initialize OneSDK.

With the Form module, you can configure and customise onboarding screens by passing a configuration object. This module can be powered either by Smart UI (our legacy UI), or the new onboarding forms.

Powered by Smart UI:

const oneSdk = await OneSdk({
  session: sessionObjectFromBackend,
  recipe: {
    form: {
      provider: {
        name: 'legacy',
        version: 'v4'
      },
    }
  }
});

Powered by the new UI:

const oneSdk = await OneSdk({
  session: sessionObjectFromBackend,
  recipe: {
    form: {
      provider: {
        name: 'react',
      },
    }
  }
});

For the details of how to configure the forms, please navigate to the following pages: