From b048f11235dac623c529b40818cfd0d147babd7d Mon Sep 17 00:00:00 2001 From: Jordan Boardman <155088633+jordanBoardmanCodes@users.noreply.github.com> Date: Wed, 20 Nov 2024 11:45:54 -0500 Subject: [PATCH] MBMS-78949 | Self-Service: PMC: Supporting documents: Error message not preventing user from continuing to next page (#33070) * MBMS-78949 found this validateFileField component and added it to veteranSupportDocs. This should be the fix if it passes POR/UI/UX. * MBMS-78949 wrapped this in a prod flag --- .../simple-forms/40-0247/pages/veteranSupportDocs.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/applications/simple-forms/40-0247/pages/veteranSupportDocs.js b/src/applications/simple-forms/40-0247/pages/veteranSupportDocs.js index 61d6c65ce98c..b0b4e443cac1 100644 --- a/src/applications/simple-forms/40-0247/pages/veteranSupportDocs.js +++ b/src/applications/simple-forms/40-0247/pages/veteranSupportDocs.js @@ -1,6 +1,7 @@ import environment from 'platform/utilities/environment'; import { titleUI } from 'platform/forms-system/src/js/web-component-patterns/titlePattern'; +import { validateFileField } from 'platform/forms-system/src/js/validation'; import { FileField } from '../components/FileField'; import SupportingDocsViewField from '../components/SupportingDocsViewField'; @@ -44,6 +45,7 @@ export default { keepInPageOnReview: true, classNames: 'schemaform-file-upload', }, + 'ui:validations': !environment.isProduction() ? [validateFileField] : [], }, }, schema: {