How do I show images uploaded to survey in Send Email Action PDF?

Images uploaded via the File Upload question show up as links in an email from the Send Email action, as well as the optional PDF review file you can attach. If you'd like to see the actual image as part of the PDF review, follow these steps!

One note: the greater the time between when the image is uploaded and when the Send Email action fires will ensure that the file has made it to the Amazon cloud where our images are stored. Ideally, your File Upload question is near the beginning of a survey and your Send Email action is on the Thank You page with at least a page or two in between.

1. You'll need a survey with a File Upload question to get started.

Note: The File Upload Security setting must be disabled for this scenario.

2. The link for all files uploaded to your account will have the same URL base:

http://surveygizmoresponseuploads.s3.amazonaws.com/fileuploads/ACCOUNT_ID/SURVEY_ID/FILENAME 

You will need to replace the three bolded pieces of the URL. You can find your account ID by clicking Account > Summary > Overview Note: This will only be accessible by account administrators.

The survey ID is located in the URL bar when you're building the survey.

Now you're ready to build the link for the Hidden Value.

3. The last piece of the link is a merge code for the name of the uploaded file. On any page that follows the File Upload question, add a Hidden Value action. Under the Populate with the following field you will see the option to Insert Merge Code. Give that a click and then select the File Upload question from the dropdown menu then click Insert. You will get a merge code like this one: [question("value"), id="5"].

Now all you need to do is put it all together into an image link with your account ID, survey ID and merge code for the File Upload question. Once you've constructed your image link put the link in the Hidden Value action you just created (you can delete the Merge Code once you've created your image link).

<img src='http://surveygizmoresponseuploads.s3.amazonaws.com/fileuploads/193520/1832522/[question("value"), id="5"]'/>

4. Once that step is complete, you can build out the rest of your survey as usual. Once you get to the Thank You page, add a Send Email action. In the action, click the Advanced tab and select the Attach a PDF Review option and then make sure the Include hidden values is selected as well.

5. Once all that is done, trying taking your survey to see how it works! If you want to try it out, here's the example survey we built to write this tutorial:

http://www.surveygizmo.com/s3/1832522/Upload-img-then-show-in-send-email-review-action

Include an Image Element from Your Survey in PDFs

Image media element are not available to include in PDFs. You'll want to instead use a Text/Instructions element. Here's how:

Go Account > Libraries > File Library and find the image you wish to include in your PDF. Click Edit on the image in question and copy the Embed Code to your clipboard:

Next, go back to your home page by clicking the Home icon. Find your survey and go to the Build tab. Just above or below your image element (it doesn't matter which as we're going to delete the image momentarily) click to insert Text/Media.

Instead of an image element we are going to keep the default selection of Text/Instructions. Enter some temporary text (we'll replace this in a moment) and click Save Text/Media and Edit.

Next, replace your temporary text with the image embed code from your clipboard and click Save.

Next, delete your duplicate image element from your survey. Make sure you are deleting the Image element and not the Text/Instructions!

Finally, when downloading PDFs, be it Individual Response, Review or Send Email PDFs, be sure to select the option to Include text/instruction from survey.

Basic Standard Market Research HR Professional Full Access Reporting
Free Individual Team & Enterprise
Feature Included In