Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>With the ready-to-use <a href="http://help.adobe.com/en_US/livecycle/9.0/designerHelp/000471.html#1584994" rel="nofollow">Email submit button</a> you can't dynamically set the subject.</p> <p>However, you can create your own button to submit the form by email and use a script to dynamically set the subject and send the email:</p> <ul> <li>drag a regular button into your form,</li> <li>open the script editor for the <code>click</code> event (<a href="http://help.adobe.com/en_US/livecycle/9.0/designerHelp/000738.html#1582009" rel="nofollow">more info</a>),</li> <li>set the language to <code>JavaScript</code> and</li> <li>use a script like the following:</li> </ul> <pre class="lang-js prettyprint-override"><code>// Replace with actual path to the field which contains the subject: var subject = path.to.field.rawValue; var myDoc = event.target; try { myDoc.mailDoc({ bUI: false, cTo: 'receiver@domain.com', // Replace with actual receiver mail address. cSubject: subject, cSubmitAs: "PDF" }); } catch (e) { // exception handling... } </code></pre> <p>You can find more in-depth information here: <a href="http://acrobatusers.com/tutorials/dynamically-setting-submit-e-mail-address" rel="nofollow">http://acrobatusers.com/tutorials/dynamically-setting-submit-e-mail-address</a>. In this tutorial not the subject but the receiver mail address is set dynamically, but you can apply the same principle to any of the parameters of the <code>doc.mailDoc(...)</code> function.</p> <p>Regarding your question on how to reduce the file size: either your form is veeery large or you have images with large file sizes embedded in the form. In the latter case search for ways to reduce the image file sizes. For example, check if you are using <code>.jpg</code> or <code>.gif</code> or <code>.png</code> files and <em>not</em> <code>.bmp</code> files (which are uncompressed and hence very large) or use images with a lower resolution (72 dpi is ok for screen display).</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload