diff --git a/src/app/form/structure-form/form.component.ts b/src/app/form/structure-form/form.component.ts index 8cadbf370266e1dd431a8c70efe94f66ad2e23ad..f6a90b9bb96165514e27e67d13c32093c955adcc 100644 --- a/src/app/form/structure-form/form.component.ts +++ b/src/app/form/structure-form/form.component.ts @@ -1018,6 +1018,15 @@ export class FormComponent implements OnInit { this.router.navigateByUrl('acteurs'); } + public shouldDisplayPage(index: number): boolean { + // handle OtherAccompaniment + if (index == this.pageTypeEnum.structureOtherAccompaniment) { + if (this.structureForm.value.proceduresAccompaniment.includes('autres')) return true; + else return false; + } + return true; + } + public checkIfPasswordHasSpecialChar(password: string): boolean { if (password.match(CustomRegExp.SPECHAR)) return true; return false;