components:
formLayout: !include @common/layouts/form-layout.yml
formGroup: !include @common/components/form-group.yml
header: !include @common/components/header.yml
pinInput: !include @common/components/pin-input.yml
fadeAnimationBack: true
schema:
required:
- code
properties:
code:
type: string
minLength: 4
maxLength: 4
errorMessage:
_: "{field} - Required field"
defaults:
mobile: !expression "flow.export.mobile"
items:
- !ref components: formLayout
items:
- !ref components: header
progress: <%-((3 / 8) * 100)%>
- !component as: div
className: "content main-content"
items:
- !component as: h1
items: "Enter your phone number"
- !component as: p
items: "Please provide a valid mobile phone number to where we can text a confirmation code to."
- !ref components: formGroup
items:
- !ref components: pinInput
field: code
label: "Enter your confirmation code"
length: 4