department-of-veterans-affairs / va.gov-team

Public resources for building on and in support of VA.gov. Visit complete Knowledge Hub:
https://depo-platform-documentation.scrollhelp.site/index.html
275 stars 193 forks source link

Research Form Pre-Fill Functionality in vets-api for Forms 21-22 & 21-22a #66168

Closed holdenhinkle closed 1 week ago

holdenhinkle commented 8 months ago

Issue Description:

The goal of this ticket is to understand the form pre-fill capabilities present within vets-api and how to set it up and utilize it for our specific forms (21-22 & 21-22a) regarding Appoint a Rep.


Tasks:

Acceptance Criteria:

holdenhinkle commented 8 months ago

Here's the pre-fill documentation - https://depo-platform-documentation.scrollhelp.site/developer-docs/va-forms-library-how-to-work-with-pre-fill#VAFormsLibrary-HowtoworkwithPre-Fill-Vets-APIWork

opticbob commented 2 weeks ago

Form pre-fill for the vets-api backend is thoroughly explained here: https://github.com/department-of-veterans-affairs/va.gov-team/blob/master/teams/vsa/teams/ebenefits/engineering/prefill_setup.md. An example PR that runs through all the necessary additions is here: https://github.com/department-of-veterans-affairs/vets-api/pull/5391.

We will need:

Outstanding questions:

  1. Are our form URLs already determined?
  2. Do we already have form names that map to our form numbers like vre_readiness: ['28-1900']?