title: Insert data into form field when pressing button on popup window
body: <p>I'm building a simple PHP app that will hopefully allow a document path to be inserted into a form field from a popup.</p>
  
  <p>In my form there is a button that will open a javascript popup box. This box loads a list of documents. I would like to have a link or button next to each document that when pressed in the popup window, inserts the file path into the parent page's form field.</p>
  
  <p>Is this even possible? If so, I assume this has to be done through javascript. Unfortunately, I'm not very versed in JS and as such I'm having a hard time finding a solution.</p>