diff --git a/src/app/forms/templates/test-records/section-templates/test/contingency/contingency-test-section-group15and16.template.ts b/src/app/forms/templates/test-records/section-templates/test/contingency/contingency-test-section-group15and16.template.ts index e29789748..5cfdd2b45 100644 --- a/src/app/forms/templates/test-records/section-templates/test/contingency/contingency-test-section-group15and16.template.ts +++ b/src/app/forms/templates/test-records/section-templates/test/contingency/contingency-test-section-group15and16.template.ts @@ -51,38 +51,10 @@ export const ContingencyTestSectionGroup15and16: FormNode = { { value: 'pass', label: 'Pass' }, { value: 'fail', label: 'Fail' }, ], - validators: [ - { name: ValidatorNames.HideIfNotEqual, args: { sibling: 'testExpiryDate', value: 'pass' } }, - { name: ValidatorNames.HideIfNotEqual, args: { sibling: 'centralDocs', value: ['pass', 'prs'] } }, - ], + validators: [{ name: ValidatorNames.HideIfNotEqual, args: { sibling: 'testExpiryDate', value: 'pass' } }], asyncValidators: [{ name: AsyncValidatorNames.PassResultDependantOnCustomDefects }], type: FormNodeTypes.CONTROL, }, - { - name: 'centralDocs', - type: FormNodeTypes.GROUP, - children: [ - { - name: 'issueRequired', - type: FormNodeTypes.CONTROL, - label: 'Issue documents centrally', - editType: FormNodeEditTypes.RADIO, - value: false, - options: [ - { value: true, label: 'Yes' }, - { value: false, label: 'No' }, - ], - validators: [{ name: ValidatorNames.HideIfParentSiblingEqual, args: { sibling: 'certificateNumber', value: true } }], - }, - { - name: 'reasonsForIssue', - type: FormNodeTypes.CONTROL, - viewType: FormNodeViewTypes.HIDDEN, - editType: FormNodeEditTypes.HIDDEN, - value: [], - }, - ], - }, { name: 'reasonForAbandoning', type: FormNodeTypes.CONTROL, @@ -104,12 +76,7 @@ export const ContingencyTestSectionGroup15and16: FormNode = { label: 'Certificate number', type: FormNodeTypes.CONTROL, editType: FormNodeEditTypes.TEXT, - validators: [ - { name: ValidatorNames.Required }, - { name: ValidatorNames.Alphanumeric }, - // Make required if test result is pass/prs, but issue documents centrally is false - { name: ValidatorNames.IssueRequired }, - ], + validators: [{ name: ValidatorNames.Required }, { name: ValidatorNames.Alphanumeric }], viewType: FormNodeViewTypes.HIDDEN, required: true, value: null,