Custom fields capture additional data and save it to the Session, making it available for reporting, server-side decisions, or cross-checking later in the journey. The data can either be collected from the user in the UI with the Custom Fields module, or supplied by your application through the API or SDK session configuration.
Warning
The Custom Fields module, which shows a form to the user, is deprecated. Existing implementations may continue to use it, but it is not available in new implementations. Sending custom fields through the API or the SDK session configuration is still supported.
Integrations
✅ Web | ✅ iOS | ❌ Android
The integrations above refer to the Custom Fields module (the user-facing form). You can still attach custom fields through the iOS session configuration or Android’s SessionConfig.Builder.setCustomFields(...). For more information, see Custom Fields (iOS).
How It Works
Custom fields are first defined in Dashboard, where each field is given a name and a type (number, string, Boolean, or date). Only fields defined for your organization are accepted, and each value must match the field's type. Once defined, custom fields can be populated in two ways:
- Collected in the UI: When the Custom Fields module is added to a Flow, it presents a form to the user during verification. On submit, the values are saved to the Session.
- Sent by your application: When the module is not added, your application sends the values, and they are saved to the Session. You can send them:
- When you start the Session, in the
customFieldsobject of Start onboarding. - During the Session, with the Add custom fields API.
- On iOS, in the
customFieldsparameter of the session configuration. For more information, see Custom Fields (iOS).
- When you start the Session, in the
Either way, the data lands in the Session's custom fields payload, where it can be referenced by other modules or retrieved server-side with the Get custom fields API.
Provide OTP Evidence for Qualified Electronic Signature
Qualified Electronic Signature requires the user's phone number to be verified with a one-time passcode (OTP) in the same session as signing. If you run your own OTP verification instead of using Incode's Phone Number Input module, pass the evidence to the Session as custom fields:
| Custom field | Description |
|---|---|
qesOtpVerifiedPhoneNumber |
The phone number your OTP verified, in E.164 format (for example, +381644398263). |
qesOtpVerifiedAt |
The date and time your OTP verification succeeded. |
qesOtpReferenceId |
The reference ID of the OTP verification in your system. |
To use these fields:
- Define the three fields in Dashboard for your organization.
- Send the values to the session before the SDK or application requests QES terms (
POST /omni/es/qes/terms), using Start onboarding, the Add custom fields API, or the iOS session configuration.
If the Session includes Incode's own phone OTP verification, you do not need to send these fields. Incode records the OTP evidence automatically.
Info
Web SDK and Web Flow integrations cannot pass custom fields. To use Qualified Electronic Signature on web, verify the user's phone number with Incode's Phone Number Input module.
For the full list of signing requirements, see Qualified Electronic Signature: Requirements.
Use Custom Fields
For instructions on adding and configuring custom fields on each supported platform, use the following pages: