Skip to main content

Custom PDF Template

Follow these steps to create and set new e-mail template for your web-forms:

  1. Go to admin backend Marketing > Email Templates

magento e-mail templates menu

  1. Press Add New Template

  2. In the Load Default Template block select WebForms: Print Result and press Load template.

  3. Default template will be loaded in Template Information block and now you can modify it.

magento create e-mail template


Please try to use inline styling for PDF templates as it works best with PDF export. For more details please refer to the mPDF CSS support

  1. Save modified template. Now go to Web-forms section and edit needed web-form.

  2. Go to Print Settings tab and select required template.

configure print template

  1. Save web-form.

WebForms email template variables

{{var webform_subject}} - Subject generated from selected fields

{{var webform_result|html}} - Default result presentation

Field variables

{{var}} - Field name

{{var result.field_code.result_label}} - Field result label

{{var result.field_code.value}} - Field value


Example: you have customer name input field with name Type your name here, result label Name and code fullname.

{{var result.fullname.result_label}} : {{var result.fullname.value}} - will print Name : John Doe in the notification e-mail.