Description

The Welcome screen provides information to the user about the onboarding process and reminders before they start onboarding.

Default Welcome screen

Configuration

Use the following table to learn more about configuration options for the Welcome screen.

ItemDescriptionUsage
nameThe name of the screen you want to loadname: "WELCOME"
typeThe type of the flow to be used. In this use case, it needs to be "ocr".type: "ocr"
titleTitle of the page.
The default is "Let's verify your identity".

- label: the title text
- style: the title styling
title: {label: "<Your_TITLE>", style: {'ff-title': {}}}
descriptions[]An array containing the descriptions displayed at the top of the page.

- label: string
- style: ff-descriptions
descriptions: [ {label: '', style: {}},
{label: '', style: {}}, ]
instructionsAn array of bulleted instrcutions

- label: The heading of instructions
- style: ff-instructions
- content [
- icon: SVG icon
- label: The text displayed in front of the icon
]
ctaThe button

- label: the button text
- style: ff-button

Sample code

const form_welcome = oneSdk.component("form", {
  name: "WELCOME",
  type: "ocr",
  descriptions: [
    { label: 'This is a sample dynamic page.', style: {} },
    { label: 'It can contain multiple paragraphs.', style: {} },
  ],
  instructions: {
    style: 
  },
  cta: {lable: "Start", style: {'ff-button':{backgroundColor: "green"}}}
});

Events

Event nameDescriptionArguments
form:welcome:loadedinputInfo: {type:'ocr'}
form:welcome:readyUpon clicking on the button, this event will be triggered, and you can listen to it to load another screen/module.inputInfo: {type:'ocr'}
form:welcome:failedinputInfo: {type:'ocr'}, message?: string

Styling customisation

You can use the following classes to customise the styling for different elements of the page. These CSS classes apply to the common elements across all the screens. If you want to customise a specific page, you can use the above configuration options to overwrite it.

ItemCSS Class
titleff-title
descriptionsff-description
instructionsff-instructions
buttonff-button

The following code shows you how to style a specific element on the page, in this example the button's background color will be green, instead of the default blue.

<style> 
    #<you_div_container> .ff-button {
      background-color: green;
    }
 </style>