How to add a pdf to a registration form

A registration form can have a custom attachment field added to it, in order for viewers to see a pdf (like an event waiver). This solution explains how to create the custom attachment field, apply it to the form, and edit the field setting for viewing.