WebMerge: Create PDFs from Responses 


In this Article
Related Articles

Overview

With WebMerge, you can automatically create PDF documents from your responses.  

See configuration instructions from WebMerge, or follow the instructions below.


Requirements

You'll need a FormAssembly Professional, Premier, or Enterprise account and a WebMerge account.  You can also view our video tutorial below for additional information.


Build Your WebMerge Integration

First, create your form in FormAssembly.  Next, you'll want to log in to your WebMerge account and begin creating your document template.  

When building your form, please note that repeated fields and sections cannot be sent to WebMerge for the creation of your PDF.

WebMerge Template Creation


In the WebMerge document template, you will need to use WebMerge syntax to create aliases for the specific fields you are planning to send over.  These aliases will need to exactly match the values you use in the HTTPS connector.

For example, if you set up your WebMerge template like the example below, using the FormAssembly field aliases for each field you are sending over, then your HTTPS connector mappings would need to reflect that.

You can use any alphanumeric value in your Webmerge template, so long as that value exactly matches what you define in your HTTPS connector.  Avoid using spaces and special characters for these values.

Once you complete your document template in WebMerge, you will need to copy the Merge URL that is provided.  This value will be pasted into your HTTPS connector.

HTTPS Connector Configuration


To setup your HTTPS connector, open the Connectors page for your form and add the connector into the Form Submitted portion of the timeline.


As mentioned above, you will need the Merge URL for your WebMerge document. Paste this URL in the Remote Script field of the HTTP Connector. Leave the HTTP Request Method set to POST.

Finally, add in your field mappings. As mentioned above, these field mappings need to exactly match the aliases you defined in your WebMerge template. Please see our video tutorial below for additional setup details. 



Send a PDF through Connectors & Emails

It's possible to get the PDF created in WebMerge to return to FormAssembly and saved as a file. This will also allow you to send the file through email notifications, to Salesforce, and other services through the connectors.

To get a file returned from WebMerge, you'll need to add ?download=1 to the query string where the data is being sent.

Example Remote Script URL for the HTTPS Connector

 

Make sure the HTTPS connector is set to Submit Mode.

 

https://www.webmerge.me/merge/6242/ekyx4?download=1

This will send the data to WebMerge and then send the PDF back to FormAssembly so that it can be stored there or sent to another system through the connectors.

Send a PDF response to Salesforce with Custom Filename

@CONCATENATE("Your Custom Filename",".",@MID(%%HTTP_CONNECTOR_ATTACHMENT%%,@COMPUTE(@FIND(".",%%HTTP_CONNECTOR_ATTACHMENT%%,1)+1),40))

You need to map %%HTTP_CONNECTOR_ATTACHMENT%% in both the filename and body in your connector.  The above formula will allow you to send a response in PDF to Salesforce with a custom filename.

Download Link and File Aliases

If you would like to send a download link to the PDF through an email response or through a connector, you can use the following alias, however, this will only provide a link, not the actual PDF file.

%%HTTP_CONNECTOR_ATTACHMENT_UNPROTECTED_URL%%

In order to send the actual PDF to Salesforce or through another connector, you will need to use this alias, which will attach the file:

%%HTTP_CONNECTOR_ATTACHMENT%%

Working with Authorize.Net

If you would like to send an Authorize.net transaction ID to your WebMerge PDF, you will need to map the the %%AUTHORIZE_DOT_NET_TRANSACTION_ID%% alias in the HTTP connector. Please make sure that it is written exactly as it is shown here.

In your WebMerge template, you will need to add in the alias as AUTHORIZE_DOT_NET_TRANSACTION_ID without the double percent signs surrounding the alias.


Video Tutorial

Terms of Service · Privacy Policy