From db43648c1a19346268848be2f4a8f6930b797b52 Mon Sep 17 00:00:00 2001 From: rdbsolutions Date: Thu, 23 Jun 2022 13:40:52 +0100 Subject: [PATCH] added config for non val --- components/newappeal/buildfield.js | 24 +- data/formsxml/nonvalidation.xml | 476 ++++++----------------------- 2 files changed, 110 insertions(+), 390 deletions(-) diff --git a/components/newappeal/buildfield.js b/components/newappeal/buildfield.js index e8d5e5c7..508807bb 100644 --- a/components/newappeal/buildfield.js +++ b/components/newappeal/buildfield.js @@ -1,20 +1,17 @@ -import Link from "next/link"; -import { useRouter } from "next/router"; import useTranslation from "next-translate/useTranslation"; -import xpath from "xpath"; - +import { useRouter } from "next/router"; import { - Textfield, + CheckBoxfield, DateFieldPicker, - YesNofield, - PickList, - MultiLinefield, - NumericField, - ReadOnlyfield, DecimalField, FileUploadField, - CheckBoxfield, + MultiLinefield, + NumericField, + PickList, Radiofield, + ReadOnlyfield, + Textfield, + YesNofield, } from "../elements"; export default function BuildField(props) { @@ -71,6 +68,10 @@ export default function BuildField(props) { validation={props.validation} setDocumentsList={props.setDocumentsList} documentList={props.documentList} + form={props.props.props.form} + formProps={props.props.props.props.form} + parentField={props.parentField} + parentFieldShowOnValue={props.parentFieldShowOnValue} /> ); break; @@ -181,6 +182,7 @@ export default function BuildField(props) { .ticketnumber } documentTypeCode={props.documentTypeCode} + hint={props.hint} /> ); diff --git a/data/formsxml/nonvalidation.xml b/data/formsxml/nonvalidation.xml index 6103d6aa..c1bbf14c 100644 --- a/data/formsxml/nonvalidation.xml +++ b/data/formsxml/nonvalidation.xml @@ -2,111 +2,24 @@ -
- - - - - - - - - - true - - - false - - - false - - - false - - - {9AC51863-58C7-49A0-ADCC-AFD9A4C3EE59} - - - false - - - - - - - - - - - - - true - - - false - - - false - - - true - - - {0ABD7146-7DE5-EB11-AAC5-00224800BE9C} - - - false - - - - - - - - - - - - - true - - - false - - - false - - - true - - - {EF816E54-E5D5-EB11-AAC5-00224800BE9C} - - - false - - - - -
@@ -115,7 +28,7 @@
- @@ -126,19 +39,19 @@ - + - - + - + - - + @@ -158,7 +71,7 @@ - + @@ -181,30 +94,6 @@ - - - - - - - - - - - - - - - - - - - - - @@ -212,99 +101,14 @@
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- + - @@ -315,19 +119,67 @@ - + - - + - + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -340,24 +192,14 @@ - - - - - - - - - - + - @@ -368,27 +210,11 @@ - + - - - - - - - - - - - - - - - - + @@ -398,111 +224,11 @@
- - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - - - - - - </Titles> - </NavBarArea> - <NavBarArea Id="Sales"> - <Titles> - <Title LCID="1033" Text="Sales" /> - </Titles> - </NavBarArea> - <NavBarArea Id="Service"> - <Titles> - <Title LCID="1033" Text="Service" /> - </Titles> - </NavBarArea> - <NavBarArea Id="Marketing"> - <Titles> - <Title LCID="1033" Text="Marketing" /> - </Titles> - </NavBarArea> - <NavBarArea Id="ProcessCenter"> - <Titles> - <Title LCID="1033" Text="Process Sessions" /> - </Titles> - </NavBarArea> - </NavBarAreas> - </Navigation> - <controlDescriptions /> </form>