Skip to content

Commit a980972

Browse files
🍒 Merge changes from PR #323 to release-v1.6.1 (#337)
Co-authored-by: Barry Dwyer <[email protected]>
1 parent 20b2b3f commit a980972

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ INSERT CSV ROWS IN ENGLISH ONLY
8787
- Github pipeline dedicated for reading secrets and variables from other environments now checks if GH_TOKEN is still valid before attempting other operations
8888
- Remove unnecessary UI dividers that add in various sections of the declaration forms(e.g the Death, Birth and Marriage forms) [#244](https://github.com/opencrvs/opencrvs-countryconfig/pull/244)
8989
- Update template transformer for fields `informantType` and `otherInformantType` that fixes the bug of unavailability of these template fields [#5952](https://github.com/opencrvs/opencrvs-countryconfig/pull/5952)
90+
- Fixed missing InitialValue property to set initial values based on an expression
9091

9192
## 1.5.2 (https://github.com/opencrvs/opencrvs-countryconfig/compare/v1.5.1...v1.5.2)
9293

src/form/types/types.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ export interface IFormFieldBase {
566566
disabled?: boolean
567567
enabled?: string
568568
custom?: boolean
569-
initialValue?: IFormFieldValue
569+
initialValue?: InitialValue
570570
initialValueKey?: string
571571
extraValue?: IFormFieldValue
572572
conditionals?: Conditional[]
@@ -844,6 +844,13 @@ export interface IDateRangePickerValue {
844844
isDateRangeActive: boolean | undefined
845845
}
846846

847+
export type DependencyInfo = {
848+
expression: string
849+
dependsOn: string[]
850+
}
851+
852+
export type InitialValue = IFormFieldValue | DependencyInfo
853+
847854
export type IFormFieldValue =
848855
| string
849856
| string[]

0 commit comments

Comments
 (0)