rep pdf questionnaire variants

This commit is contained in:
2023-10-17 09:07:18 +01:00
parent 0f0e3ed85e
commit 0c98bcd831
11 changed files with 6081 additions and 2394 deletions
@@ -13,6 +13,7 @@ import {
RenderRichMultiline,
RenderFileUpload,
FileUploadField,
RepresentationGuidanceText,
} from "./representationElements";
import {
getFormCollectionByID,
@@ -56,14 +57,20 @@ const RepAppellant = (props) => {
>
What kind of representation are you making?
</label>
<Field
name="representationType"
component={RenderPickList}
datafieldname="representationType"
optionsArr={appellantApplicantRepresentationArr}
/>
{typeof props.representationType == "undefined" ? (
<Field
name="representationType"
component={RenderPickList}
datafieldname="representationType"
optionsArr={appellantApplicantRepresentationArr}
/>
) : (
<p>{props.representationType}</p>
)}
</div>
</div>
{/* <div className="govuk-grid-row">
<div className="govuk-form-group">
<Field
@@ -102,6 +109,9 @@ const RepAppellant = (props) => {
className="govuk-textarea govuk-input--width-30"
aria-describedby={props.name + "-hint"}
/>
{RepresentationGuidanceText(
formObj.representationForm.values.appealType
)}
</div>
<div className="govuk-form-group govuk-!-margin-bottom-9">
<FileUploadField