Declaration & Forms
How to configure the declaration and action forms
Declaration form
// src/events/birth/forms/declaration.ts
import { defineDeclarationForm, FieldType } from '@opencrvs/toolkit/events'
import { child } from './pages/child'
import { informant } from './pages/informant'
import { mother } from './pages/mother'
import { father } from './pages/father'
export const birthDeclarationForm = defineDeclarationForm({
label: {
defaultMessage: 'Birth declaration form',
id: 'event.birth.action.declare.form.label',
description: 'This is what this form is referred as in the system'
},
pages: [child, informant, mother, father]
})
// src/events/birth/index.ts
import { birthDeclarationForm } from './forms/declaration'
export const birthEvent = defineConfig({
id: 'birth',
declaration: birthDeclarationForm,
// ...
})Action forms
Configured action type
Config property
Description
Pages
PageConfig schema
Last updated