diff --git a/components/newappeal/buildsection.js b/components/newappeal/buildsection.js
index 14d8fbea..65a14f50 100644
--- a/components/newappeal/buildsection.js
+++ b/components/newappeal/buildsection.js
@@ -712,6 +712,21 @@ const validate = (values) => {
}
}
+ if (values.hasOwnProperty("pinswg_costappliedforindicator")) {
+ if (values.pinswg_costappliedforindicator == "true") {
+ if (values.pinswg_attachcostapplication == "false") {
+ if (values.hasOwnProperty("pinswg_costapplication")) {
+ if (strippedHtml(values.pinswg_costapplication).length == 0)
+ errors.pinswg_costapplication =
+ "Enter submit a Cost application or select Yes to attach a separate Costs application";
+ } else {
+ errors.pinswg_costapplication =
+ "Enter submit a Cost application or select Yes to attach a separate Costs application";
+ }
+ }
+ }
+ }
+
return errors;
};
diff --git a/data/formsxml/planningappeals78.xml b/data/formsxml/planningappeals78.xml
index 6102af76..c3e7a791 100644
--- a/data/formsxml/planningappeals78.xml
+++ b/data/formsxml/planningappeals78.xml
@@ -312,7 +312,7 @@
-
+