diff --git a/src/main/java/uk/gov/hmcts/reform/pcs/ccd/domain/genapp/XuiGenAppRequest.java b/src/main/java/uk/gov/hmcts/reform/pcs/ccd/domain/genapp/XuiGenAppRequest.java index bc7ffac327..d3f0fe83f2 100644 --- a/src/main/java/uk/gov/hmcts/reform/pcs/ccd/domain/genapp/XuiGenAppRequest.java +++ b/src/main/java/uk/gov/hmcts/reform/pcs/ccd/domain/genapp/XuiGenAppRequest.java @@ -72,6 +72,7 @@ public class XuiGenAppRequest implements GenAppRequest { private List> uploadedDocuments; + @CCD(label = "Which language did you use to complete this service?") private LanguageUsed languageUsed; private VerticalYesNo sotAccepted; diff --git a/src/main/java/uk/gov/hmcts/reform/pcs/ccd/page/makeanapplication/WhichLanguage.java b/src/main/java/uk/gov/hmcts/reform/pcs/ccd/page/makeanapplication/WhichLanguage.java index 6f0b6e9c68..a5e7754bf7 100644 --- a/src/main/java/uk/gov/hmcts/reform/pcs/ccd/page/makeanapplication/WhichLanguage.java +++ b/src/main/java/uk/gov/hmcts/reform/pcs/ccd/page/makeanapplication/WhichLanguage.java @@ -9,6 +9,7 @@ import uk.gov.hmcts.reform.pcs.ccd.common.PageBuilder; import uk.gov.hmcts.reform.pcs.ccd.domain.PCSCase; import uk.gov.hmcts.reform.pcs.ccd.domain.State; +import uk.gov.hmcts.reform.pcs.ccd.domain.genapp.XuiGenAppRequest; import static uk.gov.hmcts.reform.pcs.ccd.ShowConditions.NEVER_SHOW; @@ -16,14 +17,10 @@ @AllArgsConstructor public class WhichLanguage implements CcdPageConfiguration { - private static final String PLACEHOLDER = """ -
-
-

- Placeholder -

-
-
+ private static final String INFO_MARKDOWN = """ +

If someone else helped you to answer a question in this service, + ask them if they answered any questions in Welsh. We’ll use this to make sure + your claim is processed correctly.

"""; @Override @@ -32,8 +29,11 @@ public void addTo(PageBuilder pageBuilder) { .page("whichLanguage", this::midEvent) .pageLabel("Which language did you use to complete this service?") .label("whichLanguage-lineSeparator", "---") - .label("whichLanguage-placeholder", PLACEHOLDER) - .readonly(PCSCase::getCurrentRepresentedPartyId, NEVER_SHOW, true); + .label("whichLanguage-info", INFO_MARKDOWN) + .readonly(PCSCase::getCurrentRepresentedPartyId, NEVER_SHOW, true) + .complex(PCSCase::getXuiGenAppRequest) + .mandatory(XuiGenAppRequest::getLanguageUsed) + .done(); } private AboutToStartOrSubmitResponse midEvent(CaseDetails details,