title: How can I populate a webform field with data from a content type's field?
body: <p>I am working on a real estate directory using Drupal 7 and Views. I have a content type (called offering) with all the necessary fields on it and I want to be able to create a share form that will auto-populate with data from the content type. So for instance when you visit that property's page and click on the share button, a form pops up with the property name, title, property image and the subject line already filled in and all the user has to do is enter a recipient email and hit send. I was able to do this with custom php/jquery but I am wondering if there are any Drupal modules that can achieve the same thing since my code is a bit buggy and I have 3 forms on 1 page (share form, contact support and contact transaction team).</p>
  
  <p>Here is a test link 
  <a href="http://greysteel.webmschf.com/?q=7-eleven-1" rel="nofollow">http://greysteel.webmschf.com/?q=7-eleven-1</a></p>
  
  <p>Here is some sample code of the node template that the share form shows up on</p>
  
  <pre><code>&lt;form id="shareform" action="" method="post"&gt;
    &lt;input type="text" name="shareto" /&gt;
    &lt;input type="hidden" name="ttsubject" value="Greysteel Offering: &lt;?php print $title; ?&gt;" /&gt;
    &lt;input type="hidden" name="teamemail" value="&lt;?php print render($content['field_team_emails']['#items'][0]['value']); ?&gt;" /&gt;
    &lt;input type="submit" /&gt;
  &lt;/form&gt; 
  </code></pre>
  
  <p>The above works perfectly, but the form is hard coded and cannot be administered through Drupal's back end. Is there any way around this? I've tried using the Webform module but I cannot find a way to automatically insert the property data into the webform.</p>