diff --git a/components/case/representation/representationCapacitySelection.js b/components/case/representation/representationCapacitySelection.js index 16ac04d6..e75265c4 100644 --- a/components/case/representation/representationCapacitySelection.js +++ b/components/case/representation/representationCapacitySelection.js @@ -61,7 +61,7 @@ let RepCapacitySelection = (props) => { options={capacityOptionsArr} id="representationCapacity" className="govuk-radios__input" - errorMsg="Select an option" + errorMsg={t("newappeal:select-an-option-label")} component={RenderRadioList} validate={[required]} /> diff --git a/components/elements/index.js b/components/elements/index.js index a855f258..ae011265 100644 --- a/components/elements/index.js +++ b/components/elements/index.js @@ -635,7 +635,7 @@ export function YesNofield(props) { id={props.name} className={"govuk-radios__input"} validate={eval(validation)} - errorMsg="Select an option" + errorMsg={t("newappeal:select-an-option-label")} component={RenderYesNo} inline={_.has(props, "inline") ? props.inline : "true"} requiredDocumentLabel={props.requiredDocumentLabel} @@ -807,7 +807,7 @@ export function Radiofield(props) { options={fieldOptions} id={name} //validate={[required]} - errorMsg="Select an option" + errorMsg={t("newappeal:select-an-option-label")} component={RenderRadio} inline={props.inline} hint={props.hint} @@ -826,7 +826,7 @@ export function Radiofield(props) { options={fieldOptions} id={name} //validate={[required]} - errorMsg="Select an option" + errorMsg={t("newappeal:select-an-option-label")} component={RenderRadio} inline={props.inline} hint={props.hint} @@ -930,7 +930,7 @@ export function CheckBoxfield(props) { id={props.id} className={props.className} //validate={[required]} - errorMsg="Select an option" + errorMsg={t("newappeal:select-an-option-label")} component={RenderCheckBox} /> ); diff --git a/components/newappeal/aboutyou.js b/components/newappeal/aboutyou.js index b8724267..f52596b6 100644 --- a/components/newappeal/aboutyou.js +++ b/components/newappeal/aboutyou.js @@ -397,7 +397,7 @@ let AboutYou = (props) => { options={fieldOptions} id={name} validate={[required]} - errorMsg="Select an option" + errorMsg={t("newappeal:select-an-option-label")} component={RenderRadio} inline={props.inline} hint={props.hint} @@ -416,7 +416,7 @@ let AboutYou = (props) => { options={fieldOptions} id={name} validate={[required]} - errorMsg="Select an option" + errorMsg={t("newappeal:select-an-option-label")} component={RenderRadio} inline={props.inline} hint={props.hint} @@ -508,7 +508,7 @@ let AboutYou = (props) => { id={"pinswg_appellantagent"} className="govuk-radios__input" validate={"[required]"} - errorMsg="Select an option" + errorMsg={t("newappeal:select-an-option-label")} /> {appellantAgentValue == "846040000" && ( @@ -583,7 +583,7 @@ let AboutYou = (props) => { id={"pinswg_contactprefs"} className="govuk-radios__input" validate={"[required]"} - errorMsg="Select an option" + errorMsg={t("newappeal:select-an-option-label")} /> { id={"pinswg_languagepreference"} className="govuk-radios__input" validate={"[required]"} - errorMsg="Select an optionqqq" + errorMsg={t("newappeal:select-an-option-label")} /> )} @@ -740,7 +740,7 @@ let AboutYou = (props) => { id={"pinswg_contactprefs"} className="govuk-radios__input" validate={[required]} - errorMsg="Select an option" + errorMsg={t("newappeal:select-an-option-label")} /> { id={"pinswg_languagepreference"} className="govuk-radios__input" validate={[required]} - errorMsg="Select an optionwww" + errorMsg={t("newappeal:select-an-option-label")} /> )} diff --git a/components/newappeal/createCase.js b/components/newappeal/createCase.js index 95f9ae1a..16382da1 100644 --- a/components/newappeal/createCase.js +++ b/components/newappeal/createCase.js @@ -223,7 +223,6 @@ let CreateCase = (props) => { }) => { let { t } = useTranslation(); const required = (value) => (value ? undefined : "Required"); - console.log(custom.hint); return ( <>
{ options={fieldOptions} id={name} validate={[required]} - errorMsg="Select an option" + errorMsg={t("newappeal:select-an-option-label")} component={RenderRadio} inline={props.inline} hint={props.hint} @@ -397,7 +396,7 @@ let CreateCase = (props) => { options={fieldOptions} id={name} validate={[required]} - errorMsg="Select an option" + errorMsg={t("newappeal:select-an-option-label")} component={RenderRadio} inline={props.inline} hint={props.hint} @@ -435,17 +434,17 @@ let CreateCase = (props) => { appTypeCollection = getFormCollectionByID(whichAppealType); - console.log( - "/newappeal" + - "/" + - appTypeCollection.UrlName + - "?lpa=" + - values.lpaTypes + - "&apt=" + - whichAppealType + - "&id=" //+ - // data.incidentid - ); + // console.log( + // "/newappeal" + + // "/" + + // appTypeCollection.UrlName + + // "?lpa=" + + // values.lpaTypes + + // "&apt=" + + // whichAppealType + + // "&id=" //+ + // // data.incidentid + // ); delete values.confirmHASCAS; @@ -534,15 +533,13 @@ let CreateCase = (props) => { )}