src/applications/simple-forms/20-10206/pages/otherCompensationAndPensionDetails.js
import VaTextInputField from 'platform/forms-system/src/js/web-component-fields/VaTextInputField';
import { titleUI } from 'platform/forms-system/src/js/web-component-patterns';
/** @type {PageSchema} */
export default {
uiSchema: {
...titleUI(
'Other compensation and/or pension record details',
'You requested access to another type of record that wasn’t listed. Any extra information you can share will help us find your records.',
),
otherCompAndPenDetails: {
'ui:title':
'Describe the compensation and/or pension records you’d like to request',
'ui:webComponentField': VaTextInputField,
'ui:errorMessages': {
required:
'Describe the compensation and/or pension records you’re requesting.',
},
'ui:options': {
charcount: true,
},
},
},
schema: {
type: 'object',
properties: {
otherCompAndPenDetails: {
type: 'string',
maxLength: 40,
},
},
required: ['otherCompAndPenDetails'],
},
};