department-of-veterans-affairs/vets-website

View on GitHub
src/applications/simple-forms/21P-0847/pages/additionalInformation.js

Summary

Maintainability
A
0 mins
Test Coverage
import VaTextareaField from 'platform/forms-system/src/js/web-component-fields/VaTextareaField';

/** @type {PageSchema} */
export default {
  uiSchema: {
    additionalInformation: {
      'ui:title':
        'Do you have more information to support your request? You can tell us about your relationship to the deceased claimant, the claim they were working on, or any other relevant information.',
      'ui:webComponentField': VaTextareaField,
      'ui:errorMessages': {
        maxLength: 'Please limit your answer to no more than 300 characters',
      },
    },
  },
  schema: {
    type: 'object',
    properties: {
      additionalInformation: {
        type: 'string',
        maxLength: 300,
      },
    },
  },
};