My company supports a legacy application which uses a data form containing a Recipient section and a Sender section. Each section, upon first load, contains three text inputs (horizontally aligned) with labels above them that read Last Name, First Name, and Organization. There is a button which causes a new set of inputs to appear beneath the first; this allows the user to enter multiple names.
My question, what is the optimal combination of ARIA roles and labels to ensure accessibility and 508 compliance? A user relying on assistive technology needs to be able to distinguish, for example, the "First Name" input in the Recipient section and the "First Name" input in the Sender section. The former should have ARIA label "To First Name" and the latter should have ARIA label "From First Name".
Below is a sample of what one section of the form looks like with two records filled in.
| Last Name | First Name | Organization |
|---|---|---|
| Jones | Robert | Sunnyside Corp. |
| Smith | Peter | ABC Co. |
| [button Add New] |