All placeholders can be used in the email body texts, submission message, summary content, and PDF content. Please make sure to wrap each placeholder with double curly braces, e.g: {{date}} or {{result_values}}.
You can also show the submitted value of an element with its name in curly braces, e.g. if the name of your element is MyElement, the placeholder will be {{MyElement}}. Additionally, it is possible to show the calculated value in a placeholder. Simply add an asterisk ( * ) at the end of a placeholder, e.g.: {{MyElement*}}. Images attached to radio and checkbox elements can be used, too: add “_image” at the end of a placeholder, e.g. {{MyElement_image}}.
- Default value: {{MyElement}}
- Calculated value (or text value): {{MyElement*}}
- If used in HTML elements, add :name at the end of the placeholder: {{MyElement:name}}
- If used with HTML tags, add :striptags at the end of the placheolder: {{MyElement:striptags}}
- Image: {{MyElement_image}}
Placeholder list
- date – Submission date (formatting will be taken from WordPress settings)
- date_d – the day of the month without leading zeros: 1 to 31
- date_dd – the day of the month, 2 digits with leading zeros: 01 to 31
- date_m – numeric representation of a month, without leading zeros: 1 through 12
- date_mm – numeric representation of a month, with leading zeros: 01 through 12
- date_yy – a two-digit representation of a year: 99 or 03
- date_yyyy – a full numeric representation of a year, 4 digits: 1999 or 2003
- date_u – seconds since the Unix Epoch (January 1 1970 00:00:00 GMT)
- files – List of uploaded files (note: this should not be sent to customers since the upload folder will be revealed).
- form_id – The ID of the submitted form
- form_name – Name of the submitted form
- id – Submission ID (auto-incremental value: 1, 2, 3, 4…)
- ip – IP of the user
- invoice_id – Generates invoice ID (check invoice options for prefix/suffix, since v2.9.5.2)
- page_break – Force page break (PDF only)
- pdf_url – Returns the link of the generated PDF file. This only works if the global option Save PDF files is enabled (since v2.9.9.6)
- rand_num – Returns a random number between 0 to 9
- rand_char – Returns a random character between a to z
- result_default – Detailed table of the submitted values with calculation explanation
- time – Submission time (formatting will be taken from WordPress settings)
- __token – Payment token (if available, since v2.13.0.5)
- total – Formatted total price
- submission_url – URL of the submitted form
- user – Display name of the current user [1]
- user_email – Email of the current user [1]
- user_firstname – First name of the current user [1]
- user_lastname – Last name of the current user [1]
- user_id – ID of the current user [1]
- user_login – Login (username) of the current user [1]
[1] If no user is logged in, an empty string will be returned.
Deprecated
- result, result_simple, result_values, result_values_submitted (improved placeholder: result_default)