Skip to content

Commit

Permalink
Merge pull request #254 from opencrvs/filter-options-in-document-select
Browse files Browse the repository at this point in the history
feat: enable conditional filtering in document select options
  • Loading branch information
Zangetsu101 authored Sep 12, 2024
2 parents 90c7f62 + ca8881a commit aa90500
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ INSERT CSV ROWS IN ENGLISH ONLY
- Logged in user details handlebar `loggedInUser` [#6529](https://github.com/opencrvs/opencrvs-core/issues/6529)
- Supporting document fields can now be made required
- If there is only one option in the document uploader select, then it stays hidden and only the upload button is showed with the only option being selected by default
- The select options in DOCUMENT_UPLOADER_WITH_OPTION field can now be hidden using the new `optionCondition` property. It works similarly to the same property available in SELECT_WITH_OPTIONS field

* **ElasticSearch reindexing**

Expand Down
1 change: 1 addition & 0 deletions src/form/types/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@ export interface IImageUploaderWithOptionsFormField extends IFormFieldBase {
export interface IDocumentUploaderWithOptionsFormField extends IFormFieldBase {
type: typeof DOCUMENT_UPLOADER_WITH_OPTION
options: ISelectOption[]
optionCondition?: string
hideOnEmptyOption?: boolean
compressImagesToSizeMB?: number
maxSizeMB?: number
Expand Down

0 comments on commit aa90500

Please sign in to comment.