2019.2

Table Of Contents
5. Type the code that wraps the span in a <a> element (a hyperlink). In the link, the host
should be followed by the action with which the corresponding Workflow process is
triggered and the data with which Workflow will be able to create a personalized
response.
Sample script
Let's assume:
l A Workflow process is triggered by the HTTP action: MakePDF.
l The template that outputs the pURL is to be merged with a record that contains a data
field invoice_UUID. This data field holds the information that the 'MakePDF' Workflow
process needs in order to create personalized output.
l The template contains a span with the link text "Download Invoice": <span id="get_
pdf_link">Download Invoice</span>.
The following script, with the selector #get_pdf_link, will create a valid link around the span:
results.before('<a href="http://www.example.com/MakePDF?uuid=' +
record.fields.invoice_UUID + '">');
results.after('</a>');
Tip
More ways to insert a pURL in a template are described in a how-to: How to dynamically insert
a hyperlink.
Preferences
The Preferences dialog is used to modify the general software preferences. Changes made in
this dialog affect the software globally, not individual templates and data mapping
configurations.
The Preferences dialog is separated into individual tabs, where each tab controls certain
aspects of the software.
To open the Preferences dialog, select Window > Preferences.
Page 826