Form Editor Smart Codes

Fluent Forms offers many dynamic smart codes for your form builder to use as the input default value.

The highlighted texts are dynamic; you can replace them with your own key.

General Smartcodes

CodeDescription
{wp.admin_email}Site Admin Email Address
{wp.site_url}Site URL
{wp.site_title}Site Title
{ip}User IP Address
{date.m/d/Y}Date format as {date.m/d/Y}. You can change the format as you want with PHP valid formats
{http_referer}HTTP Referer URL
{user.ID}Current User’s ID
{user.display_name}Current User’s Display Name
{user.first_name}Current User’s First name
{user.last_name}Current User’s Last Name
{user.user_email}Current User’s Email Address
{user.user_login}Current User’s Username
{user.meta.META_KEY}Current User’s Meta value by Meta Key
{browser.name}User’s Browser Name
{browser.platform}User’s Device Platform (eg: Linux/Windows/Apple)
{random_string.your_prefix}Random String with your provided prefix
{get.YOUR_GET_PARAM}Query String from your URL

Embedded Post’s smartcodes

SmartCodeDescription
{embed_post.ID}Current Post/Page/CPT ID
{embed_post.post_title}Post Title for the current Post/Page/CPT
{embed_post.permalink}Permalink of the current page where you will add the form.
{embed_post.author.AUTHOR_META_KEY}Current Post Author’s Meta Data Field.
{embed_post.meta.POST_META_KEY}Current Post’s Meta data
{embed_post.acf.ACF_KEY}Current Post’s ACF Field data by ACF_KEY

FluentCRM smartcodes

If you use FluentCRM and want to pre-fill your contact’s data in Fluent Forms, then you can use the following smartcodes.

SmartCodeDescription
{fluentcrm.prefix}Name prefix of the current contact
{fluentcrm.first_name}First name of the current contact
{fluentcrm.last_name}Last Name of the current contact
{fluentcrm.email}Email Address of the current contact
{fluentcrm.status}Current Contact’s Subscription Status
{fluentcrm.address_line_1}Address Line 1 of the current contact
{fluentcrm.address_line_2}Address Line 2 of the current contact
{fluentcrm.city}Address City of the current contact
{fluentcrm.state}Address State of the current contact
{fluentcrm.postal_code}Postal Code of the current contact
{fluentcrm.country}Country Name of the current contact
{fluentcrm.phone}Phone number of the current contact
{fluentcrm.date_of_birth}Date of birth of the contact in Y-m-d format
{fluentcrm.CUSTOM_FIELD_KEY}Custom Field data of the contact
{fluentcrm.list_ids}List IDs of the current contact
{fluentcrm.list_titles}List Titles of the current contact
{fluentcrm.list_slugs}List Slugs of the current contact
{fluentcrm.tag_ids}Tag IDs of the current contact
{fluentcrm.tag_titles}Tag Titles of the current contact
{fluentcrm.tag_slugs}Tag Slugs of the current contact

Was this article helpful to you?

10 14

How can we help?

Please submit a support ticket if you have any question or pre-sale questions. Our Customer support engineers will answer your query as soon as possible

Open a support ticket