1 Reply Latest reply on Nov 22, 2010 8:53 AM by George_Johnson

    Adobe forms - using form field data to populate subject line and body of email




      I have created a form that can be submitted by e-mail. I would like the data entered into the form to populate the subject line and body of the email but have no idea of how to script this. I would be grateful if someone could have a look at the form and see how I can achieve this.


      For example


      subject line: Travel and accommodation form [Name] [EventName] [StartDate]




      Please open the attached travel and accommodation for for [Name] who will be attending [EventName] on the [Start Date]

      Here is the code for my button:


      <field name="Submit" y="219.075mm" x="139.7mm" w="34.925mm" h="6mm">
                  <font typeface="Myriad Pro"/>
                     <para vAlign="middle" hAlign="center"/>
                     <font typeface="Myriad Pro"/>
                  <border hand="right">
                     <?templateDesigner StyleID apbx2?>
                     <edge stroke="raised"/>
                        <color value="212,208,200"/>
                  <bind match="none"/>
                  <event activity="click">
                     <submit format="pdf" textEncoding="UTF-16" target=mailto:myaddress@test.com xdpContent="pdf datasets xfdf"/>

      Please excuse my ignorance as not competent with XML so any help would be gratefully received. Have already tried some methods posted on here already but not helped.