2021.1

Table Of Contents
Renaming dynamic attachments
Dynamic attachments can be renamed via the script that attaches them to the email. Double-
click the script to open it and click the Expand button.
Dynamic attachment scripts add a <link> element to the <head> of an Email section. The title
attribute of that element specifies the attachment name that will show up in the email.
Take a look at the last line of the script:
results.append(query("<link rel=related>").attr("title", result.split('/').pop()).attr("href", result));
To give the attachment another name, you have to replace the bold part of the code by that new
name. For example:
results.append(query("<link rel=related>").attr("title", "Invoice.pdf").attr("href", result));
Of course, you can also use data field values here, for example: results.append(query("<link
rel=related>").attr("title", record.fields.invoice_number + ".pdf").attr("href", result));
Note that the Wizard can no longer be used once you have edited and saved the script.
Note
For attachment names, it is recommended to use only US-ASCII characters. Other
characters may not be supported by all email servers and clients.
Web
With the Designer you can create one or more Web templates and merge the template with a
data set to generate personal web pages.
The Web context is the Web output channel and the folder in the Designer that can contain one
or more Web templates. Capture OnTheGo templates are Web templates designed for the
Capture OnTheGo app (see "Capture OnTheGo" on page562). They are stored in the Web
folder as well.
The Web context outputs one HTML web page. In addition to the HTML text it contains either
the resources or references to the resources necessary to display it.
JavaScript files are added to the <head> in the generated HTML file. JavaScript toolboxes like
jQuery and its plugins, or MooTools, are useful when you want to implement special features in
the web page. (See "Using JavaScript" on page557.)
Page 534