diff --git a/components/elements/index.js b/components/elements/index.js
index 97cc4da9..fc7f20b9 100644
--- a/components/elements/index.js
+++ b/components/elements/index.js
@@ -44,21 +44,39 @@ const RenderTextfield = ({
};
export function Textfield(props) {
- const { name, label, validate } = props;
+ const { name, label, validate, ticketnumber } = props;
const required = (value) => (value ? undefined : "Required");
-
- return (
-
- );
+ if (name == "pinswg_name") {
+ return (
+
+
+
+
+ );
+ } else {
+ return (
+
+ );
+ }
}
const RenderMultiline = ({
@@ -349,7 +367,7 @@ export function YesNofield(props) {
id={props.name}
className="govuk-radios__input"
//validate={[required]}
- errorMsg="Select and option"
+ errorMsg="Select an option"
component={RenderYesNo}
/>
);
@@ -414,7 +432,7 @@ export function NumericField(props) {
);
break;
@@ -57,9 +62,17 @@ export default function BuildField(props) {
/>
);
break;
- case "{ 4273EDBD-AC1D-40d3-9FB2-095C621B552D}":
+ case "{4273EDBD-AC1D-40d3-9FB2-095C621B552D}":
return (
-
+
);
break;
case "{5B773807-9FB2-42db-97C3-7A91EFF8ADFF}":
diff --git a/components/newappeal/complete.js b/components/newappeal/complete.js
index 5feaf6fe..77ace2f4 100644
--- a/components/newappeal/complete.js
+++ b/components/newappeal/complete.js
@@ -11,12 +11,22 @@ import { updateCase } from "../../actions";
let CompleteAppeal = (props) => {
// un comment to update incident with an appealtype id
- // useEffect(() => {
- // updateCase(
- // props.appealType.caseReference.incidentid,
- // props.appealType.appealTypeID
- // );
- // }, []);
+ useEffect(() => {
+ // updateCase(
+ // props.appealType.caseReference.incidentid,
+ // props.appealType.appealTypeID,
+ // props.form.appealform.values,
+ // pinswg_appealcasetype@OData.Community.Display.V1.Formatted
+ // );
+ console.log(props.appealType.caseReference.incidentid);
+ console.log(props.appealType.appealTypeID);
+ console.log(props.form);
+ console.log(
+ props.appealType.caseReference[
+ "pinswg_appealcasetype@OData.Community.Display.V1.Formatted"
+ ]
+ );
+ }, []);
let { t } = useTranslation();
@@ -57,6 +67,7 @@ let CompleteAppeal = (props) => {
setCurrentSection(currentSection + 1);
};
+ console.log(JSON.stringify(props.props.form.appealForm.values, null, 2));
alert(JSON.stringify(props.props.form.appealForm.values, null, 2));
return (