{"id":125,"date":"2024-05-28T10:25:06","date_gmt":"2024-05-28T14:25:06","guid":{"rendered":"https:\/\/htmlformsplugin.test\/?p=125"},"modified":"2024-05-31T11:39:22","modified_gmt":"2024-05-31T15:39:22","slug":"template-variables","status":"publish","type":"post","link":"https:\/\/htmlformsplugin.com\/kb\/template-variables\/","title":{"rendered":"Template Variables"},"content":{"rendered":"\n<p><a href=\"https:\/\/htmlformsplugin.com\/\">HTML Forms<\/a> 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.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"user\">user<\/h2>\n\n\n\n<p>Will be replaced with the specified property of the currently logged-in user.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\"><code>{{ user.user_email }}<\/code><\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"url_params\">url_params<\/h2>\n\n\n\n<p>This will be replaced with a parameter from the page URL, or with an empty string if the specified URL parameter does not exist.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\"><code>{{url_params.utm_source}}<\/code><\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"post\">post<\/h2>\n\n\n\n<p>This will be substituted with the specified property of the post that is viewed on the page the form is displayed on.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\"><code>{{post.ID}}<\/code><\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>You can dynamically insert variables in your form templates. These variables will be replaced with the form is shown to users.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[4],"class_list":["post-125","post","type-post","status-publish","format-standard","hentry","category-kb","tag-form-settings"],"yoast_head":"<title>Template Variables - HTML Forms WordPress Plugin<\/title>\n<meta name=\"description\" content=\"You can dynamically insert variables in your form templates. These variables will be replaced with the form is shown to users.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/htmlformsplugin.com\/kb\/template-variables\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Template Variables\" \/>\n<meta property=\"og:description\" content=\"You can dynamically insert variables in your form templates. These variables will be replaced with the form is shown to users.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/htmlformsplugin.com\/kb\/template-variables\/\" \/>\n<meta property=\"og:site_name\" content=\"HTML Forms WordPress Plugin\" \/>\n<meta property=\"article:published_time\" content=\"2024-05-28T14:25:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-31T15:39:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/htmlformsplugin.com\/wp-content\/uploads\/2024\/05\/open-graph-html-forms.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Template Variables\" \/>\n<meta name=\"twitter:description\" content=\"You can dynamically insert variables in your form templates. These variables will be replaced with the form is shown to users.\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/htmlformsplugin.com\\\/kb\\\/template-variables\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/htmlformsplugin.com\\\/kb\\\/template-variables\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/htmlformsplugin.com\\\/#\\\/schema\\\/person\\\/91bdb8fe3d28e069afcaa14af31ce932\"},\"headline\":\"Template Variables\",\"datePublished\":\"2024-05-28T14:25:06+00:00\",\"dateModified\":\"2024-05-31T15:39:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/htmlformsplugin.com\\\/kb\\\/template-variables\\\/\"},\"wordCount\":96,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/htmlformsplugin.com\\\/#organization\"},\"keywords\":[\"Form Settings\"],\"articleSection\":[\"Knowledge Base\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/htmlformsplugin.com\\\/kb\\\/template-variables\\\/\",\"url\":\"https:\\\/\\\/htmlformsplugin.com\\\/kb\\\/template-variables\\\/\",\"name\":\"Template Variables - HTML Forms WordPress Plugin\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/htmlformsplugin.com\\\/#website\"},\"datePublished\":\"2024-05-28T14:25:06+00:00\",\"dateModified\":\"2024-05-31T15:39:22+00:00\",\"description\":\"You can dynamically insert variables in your form templates. These variables will be replaced with the form is shown to users.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/htmlformsplugin.com\\\/kb\\\/template-variables\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/htmlformsplugin.com\\\/kb\\\/template-variables\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/htmlformsplugin.com\\\/kb\\\/template-variables\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/htmlformsplugin.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Template Variables\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/htmlformsplugin.com\\\/#website\",\"url\":\"https:\\\/\\\/htmlformsplugin.com\\\/\",\"name\":\"HTML Forms WordPress Plugin\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/htmlformsplugin.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/htmlformsplugin.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/htmlformsplugin.com\\\/#organization\",\"name\":\"HTML Forms WordPress Plugin\",\"url\":\"https:\\\/\\\/htmlformsplugin.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/htmlformsplugin.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/htmlformsplugin.com\\\/wp-content\\\/uploads\\\/2024\\\/05\\\/html-forms-logo.png\",\"contentUrl\":\"https:\\\/\\\/htmlformsplugin.com\\\/wp-content\\\/uploads\\\/2024\\\/05\\\/html-forms-logo.png\",\"width\":256,\"height\":256,\"caption\":\"HTML Forms WordPress Plugin\"},\"image\":{\"@id\":\"https:\\\/\\\/htmlformsplugin.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/htmlformsplugin.com\\\/#\\\/schema\\\/person\\\/91bdb8fe3d28e069afcaa14af31ce932\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0a4e20dbdeef8b13256313af7321c678398555dcdb38d24a93099545d83010c7?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0a4e20dbdeef8b13256313af7321c678398555dcdb38d24a93099545d83010c7?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0a4e20dbdeef8b13256313af7321c678398555dcdb38d24a93099545d83010c7?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\\\/\\\/htmlformsplugin.com\"],\"url\":\"https:\\\/\\\/htmlformsplugin.com\\\/author\\\/admin\\\/\"}]}<\/script>","yoast_head_json":{"title":"Template Variables - HTML Forms WordPress Plugin","description":"You can dynamically insert variables in your form templates. These variables will be replaced with the form is shown to users.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/htmlformsplugin.com\/kb\/template-variables\/","og_locale":"en_US","og_type":"article","og_title":"Template Variables","og_description":"You can dynamically insert variables in your form templates. These variables will be replaced with the form is shown to users.","og_url":"https:\/\/htmlformsplugin.com\/kb\/template-variables\/","og_site_name":"HTML Forms WordPress Plugin","article_published_time":"2024-05-28T14:25:06+00:00","article_modified_time":"2024-05-31T15:39:22+00:00","og_image":[{"width":1200,"height":600,"url":"https:\/\/htmlformsplugin.com\/wp-content\/uploads\/2024\/05\/open-graph-html-forms.png","type":"image\/png"}],"author":"admin","twitter_card":"summary_large_image","twitter_title":"Template Variables","twitter_description":"You can dynamically insert variables in your form templates. These variables will be replaced with the form is shown to users.","twitter_misc":{"Written by":"admin","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/htmlformsplugin.com\/kb\/template-variables\/#article","isPartOf":{"@id":"https:\/\/htmlformsplugin.com\/kb\/template-variables\/"},"author":{"name":"admin","@id":"https:\/\/htmlformsplugin.com\/#\/schema\/person\/91bdb8fe3d28e069afcaa14af31ce932"},"headline":"Template Variables","datePublished":"2024-05-28T14:25:06+00:00","dateModified":"2024-05-31T15:39:22+00:00","mainEntityOfPage":{"@id":"https:\/\/htmlformsplugin.com\/kb\/template-variables\/"},"wordCount":96,"commentCount":0,"publisher":{"@id":"https:\/\/htmlformsplugin.com\/#organization"},"keywords":["Form Settings"],"articleSection":["Knowledge Base"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/htmlformsplugin.com\/kb\/template-variables\/","url":"https:\/\/htmlformsplugin.com\/kb\/template-variables\/","name":"Template Variables - HTML Forms WordPress Plugin","isPartOf":{"@id":"https:\/\/htmlformsplugin.com\/#website"},"datePublished":"2024-05-28T14:25:06+00:00","dateModified":"2024-05-31T15:39:22+00:00","description":"You can dynamically insert variables in your form templates. These variables will be replaced with the form is shown to users.","breadcrumb":{"@id":"https:\/\/htmlformsplugin.com\/kb\/template-variables\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/htmlformsplugin.com\/kb\/template-variables\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/htmlformsplugin.com\/kb\/template-variables\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/htmlformsplugin.com\/"},{"@type":"ListItem","position":2,"name":"Template Variables"}]},{"@type":"WebSite","@id":"https:\/\/htmlformsplugin.com\/#website","url":"https:\/\/htmlformsplugin.com\/","name":"HTML Forms WordPress Plugin","description":"","publisher":{"@id":"https:\/\/htmlformsplugin.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/htmlformsplugin.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/htmlformsplugin.com\/#organization","name":"HTML Forms WordPress Plugin","url":"https:\/\/htmlformsplugin.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/htmlformsplugin.com\/#\/schema\/logo\/image\/","url":"https:\/\/htmlformsplugin.com\/wp-content\/uploads\/2024\/05\/html-forms-logo.png","contentUrl":"https:\/\/htmlformsplugin.com\/wp-content\/uploads\/2024\/05\/html-forms-logo.png","width":256,"height":256,"caption":"HTML Forms WordPress Plugin"},"image":{"@id":"https:\/\/htmlformsplugin.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/htmlformsplugin.com\/#\/schema\/person\/91bdb8fe3d28e069afcaa14af31ce932","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0a4e20dbdeef8b13256313af7321c678398555dcdb38d24a93099545d83010c7?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0a4e20dbdeef8b13256313af7321c678398555dcdb38d24a93099545d83010c7?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0a4e20dbdeef8b13256313af7321c678398555dcdb38d24a93099545d83010c7?s=96&d=mm&r=g","caption":"admin"},"sameAs":["https:\/\/htmlformsplugin.com"],"url":"https:\/\/htmlformsplugin.com\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/htmlformsplugin.com\/wp-json\/wp\/v2\/posts\/125","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/htmlformsplugin.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/htmlformsplugin.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/htmlformsplugin.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/htmlformsplugin.com\/wp-json\/wp\/v2\/comments?post=125"}],"version-history":[{"count":2,"href":"https:\/\/htmlformsplugin.com\/wp-json\/wp\/v2\/posts\/125\/revisions"}],"predecessor-version":[{"id":170,"href":"https:\/\/htmlformsplugin.com\/wp-json\/wp\/v2\/posts\/125\/revisions\/170"}],"wp:attachment":[{"href":"https:\/\/htmlformsplugin.com\/wp-json\/wp\/v2\/media?parent=125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/htmlformsplugin.com\/wp-json\/wp\/v2\/categories?post=125"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/htmlformsplugin.com\/wp-json\/wp\/v2\/tags?post=125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}