I have no background in working with the Drupal API, so answers will have to explain it like I'm a child.
I am trying to create a custom field module. The widget should show a button with JS onClick action that opens an external form. The user selects through a series of prompts and the external form returns XML to the page that should be stored in a hidden XML field (I'm using the XML Field module). The XML is never shown to the user, but instead powers a JS script on node view.
The formatter for the field should deliver the content of the XML field as a JS variable and not display anything on the page.
I've read through the Drupal API documentation and several tutorials on building custom fields. However, these all assume a working knowledge of the Field API, which I do not possess.
Is this possible in a field module, or should I be looking at a different way of implementing this?
I'm using Drupal 7 and the external form is a client metadata requirement I have no control over.