diff --git a/src/services/api/webforms/ABP2A/v202401.ts b/src/services/api/webforms/ABP2A/v202401.ts index a72b3938a..315a44b38 100644 --- a/src/services/api/webforms/ABP2A/v202401.ts +++ b/src/services/api/webforms/ABP2A/v202401.ts @@ -72,6 +72,16 @@ export const v202401: FormSchema = { { title: "Assurances", sectionId: "assurances", + dependency: { + conditions: [ + { + name: "abp2a_benefit-align-and-require_is-state-territory-aligned", + type: "expectedValue", + expectedValue: "no", + }, + ], + effect: { type: "show" }, + }, form: [ { description: @@ -97,7 +107,7 @@ export const v202401: FormSchema = { { styledLabel: [ { - text: "Once an individual is identified, the state/territory assures it will effectively inform the individual of the following:", + text: "Once an individual is identified, the state/territory assures it will effectively inform the individual:", type: "default", classname: "block py-1", }, @@ -122,7 +132,7 @@ export const v202401: FormSchema = { { styledLabel: [ { - text: "The state/territory assures it will inform the individual of the following:", + text: "The state/territory assures it will inform the individual of:", type: "default", classname: "block py-1", }, @@ -150,6 +160,16 @@ export const v202401: FormSchema = { { title: "Delivery of information", sectionId: "delivery-of-info", + dependency: { + conditions: [ + { + name: "abp2a_benefit-align-and-require_is-state-territory-aligned", + type: "expectedValue", + expectedValue: "no", + }, + ], + effect: { type: "show" }, + }, form: [ { description: @@ -174,7 +194,7 @@ export const v202401: FormSchema = { value: "other", slots: [ { - rhf: "Input", + rhf: "Textarea", name: "describe-other-enrollment", label: "Describe", labelClassName: "font-bold", @@ -294,7 +314,7 @@ export const v202401: FormSchema = { value: "other", slots: [ { - rhf: "Input", + rhf: "Textarea", name: "where-will-info-be-doc-describe-other", label: "Describe", labelClassName: "font-bold", @@ -341,7 +361,7 @@ export const v202401: FormSchema = { "what_documentation_will_be_maintained_in_the_eligibility_file_other", slots: [ { - rhf: "Input", + rhf: "Textarea", name: "describe-other-maintained", label: "Describe", labelClassName: "font-bold", @@ -382,6 +402,16 @@ export const v202401: FormSchema = { { title: "Additional information", sectionId: "addtnl-info", + dependency: { + conditions: [ + { + name: "abp2a_benefit-align-and-require_is-state-territory-aligned", + type: "expectedValue", + expectedValue: "no", + }, + ], + effect: { type: "show" }, + }, form: [ { description: diff --git a/src/services/api/webforms/ABP2B/v202401.ts b/src/services/api/webforms/ABP2B/v202401.ts index e6356596f..635c8a90a 100644 --- a/src/services/api/webforms/ABP2B/v202401.ts +++ b/src/services/api/webforms/ABP2B/v202401.ts @@ -118,7 +118,7 @@ export const v202401: FormSchema = { value: "other", slots: [ { - rhf: "Input", + rhf: "Textarea", name: "describe-other-enrollment", label: "Describe", labelClassName: "font-bold", @@ -238,7 +238,7 @@ export const v202401: FormSchema = { value: "other", slots: [ { - rhf: "Input", + rhf: "Textarea", name: "where-will-info-be-doc-describe-other", label: "Describe", labelClassName: "font-bold", @@ -285,7 +285,7 @@ export const v202401: FormSchema = { "what_documentation_will_be_maintained_in_the_eligibility_file_other", slots: [ { - rhf: "Input", + rhf: "Textarea", name: "describe-other-maintained", label: "Describe", labelClassName: "font-bold", diff --git a/src/services/ui/src/components/Inputs/textarea.tsx b/src/services/ui/src/components/Inputs/textarea.tsx index dbf71f474..be609cc4c 100644 --- a/src/services/ui/src/components/Inputs/textarea.tsx +++ b/src/services/ui/src/components/Inputs/textarea.tsx @@ -9,7 +9,7 @@ const Textarea = React.forwardRef( <>