diff --git a/src/openforms/submissions/api/validation.py b/src/openforms/submissions/api/validation.py index 092e814e0e..e8c58cdf3c 100644 --- a/src/openforms/submissions/api/validation.py +++ b/src/openforms/submissions/api/validation.py @@ -55,15 +55,16 @@ def validate(self, attrs: dict): for step in submission.steps: errors = {} assert step.form_step - components = step.form_step.form_definition.configuration["components"] - step_data_serializer = build_serializer( - components, - data=data, - context={"submission": submission}, - ) - if not step_data_serializer.is_valid(): - errors = step_data_serializer.errors + if step.is_applicable: + components = step.form_step.form_definition.configuration["components"] + step_data_serializer = build_serializer( + components, + data=data, + context={"submission": submission}, + ) + if not step_data_serializer.is_valid(): + errors = step_data_serializer.errors if errors: formio_validation_errors.append({"data": errors})