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
HTML Forms Premium includes a visibility feature that lets you only show a form when a user is logged in to your site. This feature lets you have greater control over who can see, and submit data, to your website. Enabling the Require Users to Log In Feature You’ll need to install HTML Forms Premium […]
Learn how to integrate hCaptcha into your forms thanks to code submissions from the HTML Forms plugin community of developers.