Onboarding configuration
esc
Country
Forms
↑↓ navigate↵ open40 results
Countries/TZ/basic_info

basic_info

Base v1 · src/Modules/FormEngine/OmniDos.FormEngine.Infra/SeedData/Forms/basic_info_base_v1_schema.json

Scope
Prefill from journey data

The service uses the first non-empty source. Use a dot path beginning with the source step id.

Options (enum)
NATIDidentity.documentType.nationalId
Validation
Error message keys (i18n)
Prefill from journey data

The service uses the first non-empty source. Use a dot path beginning with the source step id.

Options (enum)
Validationrequired
Error message keys (i18n)
Prefill from journey data

The service uses the first non-empty source. Use a dot path beginning with the source step id.

Options (enum)
Validationrequired
Error message keys (i18n)
Prefill from journey data

The service uses the first non-empty source. Use a dot path beginning with the source step id.

Options (enum)
Validationrequired
Error message keys (i18n)
Live preview

Renders as the web app would. Interactive — pick values to exercise visibility rules and validation.

EQUITY
basic_info

Your details

Enter your identity details

NIDA number
Phone number

Blocking the CTA (2)

  • documentNumber — Document number is required
  • phoneNumber — Phone number is required

Not shown to the customer

  • documentType — in the schema, but no layout row places it
  • countryOfResidence — in the schema, but no layout row places it
  • documentType — x-hidden — sent in the payload, never displayed
  • countryOfResidence — x-hidden — sent in the payload, never displayed
Generated change (2 files)
src/Modules/FormEngine/OmniDos.FormEngine.Infra/SeedData/Patches/TZ/basic_info_tz_v1_schema_patch.json
[
  {
    "op": "replace",
    "path": "/required/2",
    "value": "countryOfResidence"
  },
  {
    "op": "replace",
    "path": "/required/1",
    "value": "phoneNumber"
  },
  {
    "op": "replace",
    "path": "/required/0",
    "value": "documentNumber"
  },
  {
    "op": "remove",
    "path": "/properties/email"
  },
  {
    "op": "replace",
    "path": "/properties/documentNumber/x-errorMessages/pattern",
    "value": "identity.error.documentNumber.tz.pattern"
  },
  {
    "op": "replace",
    "path": "/properties/documentNumber/x-placeholderKey",
    "value": "identity.documentNumber.tz.nidaPlaceholder"
  },
  {
    "op": "replace",
    "path": "/properties/documentNumber/x-labelKey",
    "value": "identity.documentNumber.tz.nidaLabel"
  },
  {
    "op": "replace",
    "path": "/properties/documentNumber/maxLength",
    "value": 20
  },
  {
    "op": "replace",
    "path": "/properties/documentNumber/minLength",
    "value": 20
  },
  {
    "op": "replace",
    "path": "/properties/documentNumber/pattern",
    "value": "^\\d{20}$"
  },
  {
    "op": "remove",
    "path": "/properties/documentType/x-enumLabels/REFUGEE_ID"
  },
  {
    "op": "remove",
    "path": "/properties/documentType/x-enumLabels/ALIEN"
  },
  {
    "op": "remove",
    "path": "/properties/documentType/x-enumLabels/PASPO"
  },
  {
    "op": "remove",
    "path": "/properties/documentType/enum/3"
  },
  {
    "op": "remove",
    "path": "/properties/documentType/enum/2"
  },
  {
    "op": "remove",
    "path": "/properties/documentType/enum/1"
  },
  {
    "op": "add",
    "path": "/properties/documentType/x-hidden",
    "value": true
  },
  {
    "op": "add",
    "path": "/properties/countryOfResidence",
    "value": {
      "type": "string",
      "minLength": 2,
      "maxLength": 2,
      "pattern": "^[A-Z]{2}$",
      "default": "TZ",
      "x-hidden": true,
      "x-labelKey": "address.countryOfResidence.label",
      "x-placeholderKey": "address.countryOfResidence.placeholder",
      "x-errorMessages": {
        "type": "address.error.countryOfResidence.type",
        "required": "address.error.countryOfResidence.required",
        "minLength": "address.error.countryOfResidence.minLength",
        "maxLength": "address.error.countryOfResidence.maxLength",
        "pattern": "address.error.countryOfResidence.pattern"
      }
    }
  }
]
src/Modules/FormEngine/OmniDos.FormEngine.Infra/SeedData/Patches/TZ/basic_info_tz_v1_ui_patch.json
[
  {
    "op": "remove",
    "path": "/widgets/email"
  },
  {
    "op": "remove",
    "path": "/widgets/documentType"
  },
  {
    "op": "remove",
    "path": "/layout/0/fields/3"
  },
  {
    "op": "remove",
    "path": "/layout/0/fields/2"
  },
  {
    "op": "replace",
    "path": "/layout/0/fields/1/0",
    "value": "phoneNumber"
  },
  {
    "op": "replace",
    "path": "/layout/0/fields/0/0",
    "value": "documentNumber"
  }
]
Downloads a zip to apply to a clone and raise as a PR.