diff --git a/client/app/src/shared/services/field-utilities.service.ts b/client/app/src/shared/services/field-utilities.service.ts index 284daa5db6..01b253f179 100644 --- a/client/app/src/shared/services/field-utilities.service.ts +++ b/client/app/src/shared/services/field-utilities.service.ts @@ -252,11 +252,12 @@ export class FieldUtilitiesService { scope.submissionService.override_receivers = []; } - let ret = false; + let ret = false, recursive_ret = false; scope.questionnaire.steps.forEach((step: any) => { step.enabled = this.isFieldTriggered(null, step, scope.answers, scope.score); - ret = ret || this.updateAnswers(scope, step, step.children, scope.answers); + recursive_ret = this.updateAnswers(scope, step, step.children, scope.answers); + ret = ret || recursive_ret; }); if (scope.context) {