Sample - Add a control to a form.
The attached plugin demonstrates adding a control to the header section of the purchase order form. The value is saved to / read from a custom field. The value can be edited via the custom field and/or the control.