From 368b22708625985f06ac4ae083c4bfc3cd31cbcf Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 8 Dec 2023 16:52:49 +0000 Subject: [PATCH] Add validation to default form step button actions --- packages/frontend-core/src/utils/utils.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/frontend-core/src/utils/utils.js b/packages/frontend-core/src/utils/utils.js index 3f5fa5d3a0..75c2f0b675 100644 --- a/packages/frontend-core/src/utils/utils.js +++ b/packages/frontend-core/src/utils/utils.js @@ -281,6 +281,12 @@ export const buildMultiStepFormBlockButtonConfig = props => { size: "M", disabled: currentStep === stepCount - 1, onClick: [ + { + "##eventHandlerType": "Validate Form", + parameters: { + componentId: `${_id}-form`, + }, + }, { parameters: { type: "next",