Template Variables
HTML Forms provides several template variables you can use in your form content. These form variables will be dynamically replaced when the form is shown. Currently, you can use the following variables.
user
Will be replaced with the specified property of the currently logged-in user.
{{ user.user_email }}
url_params
This will be replaced with a parameter from the page URL, or with an empty string if the specified URL parameter does not exist.
{{url_params.utm_source}}
post
This will be substituted with the specified property of the post that is viewed on the page the form is displayed on.
{{post.ID}}
Related Posts from Our Knowledge Base
Creating your first form with the HTML Forms WordPress plugin is quick and simple. You’ll be up and running in seconds.
HTML Forms will store all of your form submissions directly inside the WordPress admin. You can access this from the Submissions tab when viewing a form. List View The Submissions tab shows all the submissions your form has received in chronological order. Each field in your form will have its own column, in addition to […]