diff --git a/src/components/inputs/multi-select/multi-select.component.tsx b/src/components/inputs/multi-select/multi-select.component.tsx index aab7bf90..317fd0b4 100644 --- a/src/components/inputs/multi-select/multi-select.component.tsx +++ b/src/components/inputs/multi-select/multi-select.component.tsx @@ -130,19 +130,21 @@ const MultiSelect: React.FC = ({ field, value, errors, warn )} -
- {value?.length && field.questionOptions.answers?.length > 5 ? ( -
- {formFieldAdapters[field.type]?.getDisplayValue(field, value)?.map((displayValue, index) => ( - - {displayValue} - - ))} -
- ) : ( - - )} -
+ {!field.inlineMultiCheckbox && ( +
+ {value?.length ? ( +
+ {formFieldAdapters[field.type]?.getDisplayValue(field, value)?.map((displayValue, index) => ( + + {displayValue} + + ))} +
+ ) : ( + + )} +
+ )} ) ); diff --git a/src/provider/form-factory-provider.tsx b/src/provider/form-factory-provider.tsx index cba1b6c1..404ecb17 100644 --- a/src/provider/form-factory-provider.tsx +++ b/src/provider/form-factory-provider.tsx @@ -14,7 +14,6 @@ import { type FormContextProps } from './form-provider'; import { processPostSubmissionActions, validateForm } from './form-factory-helper'; import { useTranslation } from 'react-i18next'; import { usePostSubmissionActions } from '../hooks/usePostSubmissionActions'; -import { reportError } from '../utils/error-utils'; interface FormFactoryProviderContextProps { patient: fhir.Patient; diff --git a/translations/en.json b/translations/en.json index 11ba6b6c..08c79dcc 100644 --- a/translations/en.json +++ b/translations/en.json @@ -2,22 +2,17 @@ "add": "Add", "addCameraImage": "Add camera image", "addFile": "Add files", - "attachmentsSaved": "Attachment(s) saved successfully", "cameraCapture": "Camera capture", "cancel": "Cancel", "chooseAnOption": "Choose an option", + "clearFile": "Clear file", "close": "Close", "closeCamera": "Close camera", "closesNotification": "Closes notification", - "submittedForm": "Form submitted", - "submittedFormDescription": "Form submitted successfully", - "errorDescription": "{{errors}}", - "errorDescriptionTitle": "Error on saving form", + "errorLoadingFormSchema": "Error loading form schema", + "errorLoadingInitialValues": "Error loading initial values", "errorRenderingField": "Error rendering field", - "errorSavingAttachments": "Error saving attachment(s)", - "errorSavingEncounter": "Error saving encounter", - "errorSavingPatientIdentifiers": "Error saving patient identifiers", - "errorSavingPatientPrograms": "Error saving patient program(s)", + "fieldErrorDescriptionTitle": "Validation Errors", "fileUploadDescription": "", "fileUploadDescriptionAny": "Upload any file type", "invalidWorkspaceName": "Invalid workspace name.", @@ -25,13 +20,12 @@ "launchWorkspace": "", "loading": "Loading", "notification": "Notification", - "ordersSaved": "Order(s) saved sucessfully", - "patientIdentifiersSaved": "Patient identifier(s) saved sucessfully", - "patientProgramsSaved": "Patient program(s) saved successfully", + "nullMandatoryField": "Please fill the required fields", "preview": "Preview", "previousValue": "Previous value:", "remove": "Remove", "required": "Required", + "reuseValue": "Reuse value", "revert": "Revert", "save": "Save", "search": "Search", @@ -39,9 +33,8 @@ "time": "Time", "unspecified": "Unspecified", "unspecifyAll": "Unspecify All", - "updatedRecord": "Record updated", - "updatedRecordDescription": "The patient encounter was updated", "upload": "Upload", "uploadedPhoto": "Uploaded photo", - "uploadImage": "Upload image" + "uploadImage": "Upload image", + "valuesOutOfBound": "Some of the values are out of bounds" }