Description

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

Sample 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 "manual".type: "manual"
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-description
descriptions: [ {label: '', style: {}},
{label: '', style: {}}, ]
instructionsAn array of bulleted instructions

- 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: 'manual',
  title: { 
    label: 'Let\'s get you onboarded'
  },
  descriptions: [
    {
      label: 'To join us you need to be over 18 years old.'
    },
    { 
      label: 'You will need a valid form of identity. Valid types include ...',
    },
  ],
  instructions: { 
    content: [
      { 
        label: "fill out each page" 
      }
    ]
  },
  cta: {
    label: 'Start'
  }
});

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.