Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"@hapi/boom": "^9.1.1",
"@hapi/hapi": "^20.0.1",
"@hapi/inert": "^6.0.3",
"@opencrvs/toolkit": "1.8.1-rc.fa0e315",
"@opencrvs/toolkit": "1.8.1-rc.4cfe084",
"@types/chalk": "^2.2.0",
"@types/csv2json": "^1.4.0",
"@types/fhir": "^0.0.30",
Expand Down
25 changes: 24 additions & 1 deletion src/form/tennis-club-membership.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ import {
FieldType,
PageTypes,
field,
event
event,
or,
user
} from '@opencrvs/toolkit/events'
import { Event } from './types/types'
import { MAX_NAME_LENGTH } from './v2/birth/validators'
Expand Down Expand Up @@ -148,6 +150,27 @@ const TENNIS_CLUB_DECLARATION_FORM = defineDeclarationForm({
description: 'This is the label for the field',
id: 'event.tennis-club-membership.action.declare.form.section.who.field.image.label'
}
},
{
id: 'applicant.isRecommendedByFieldAgent',
type: FieldType.CHECKBOX,
analytics: true,
required: false,
label: {
defaultMessage:
'Field shown when field agent is submitting application.',
description: 'This is the label for the field',
id: 'event.tennis-club-membership.action.declare.form.section.who.field.isRecommendedByFieldAgent.label'
},
conditionals: [
{
type: ConditionalType.SHOW,
conditional: or(
user.hasRole('SOCIAL_WORKER'),
user.hasRole('FIELD_AGENT')
)
}
]
}
]
},
Expand Down
Loading