When you upload a related document in the related documents panel, you can tell the system which document it is before uploading it.
To do this, simply select, in the form dropdown, the type of document you want to attach and then drag and drop the document into the grey area.
If by mistake you upload the document without having indicated the form it belongs to, you can change it once uploaded.
To do so, next to the name of the uploaded document, click on the change form icon.
Next, in the pop-up, select the form you want to use and click on the Change button. When you refresh the screen, you will see the changes applied.