For the Landlord – On the property record under the 'landlords' tab, the names that appear at the bottom of the screen in the 'Landlords Names' field is the information that is merged onto the documents.
For the Tenants – On the tenancy record under the 'Tenants' tab, the names that appear at the bottom of the screen in the 'Tenants names (for correspondence)' field is the information that is merged onto the documents.