Variables Reference

WS Form variables enable you to add dynamic content to various elements of your form such as default field values and email templates.

Looking for some of our most commonly used variables? Check out our Variable Cheat Sheet!

Areas where WS Form variables can be used are accompanied by a field lookup icon. By clicking this icon, a list of the available variables will be shown below the corresponding field. Clicking on a variable will insert it into the field you are editing.

All WS Form variables start with the # character. For example:

#blog_name

Some variables take additional parameters. For example:

#field(123)

If a variable takes more than one parameter, you separate those values with a comma. For example:

#email_submission(true,true,true)

If a variable parameter contains a comma, you should encase it in double quotes. For example:

#server_date_custom("d m, Y")

WS Form Variable List

The following variables are available for use in WS Form.

Author

VariableNameDescriptionUsage
#author_display_nameDisplay NameReturns the author of the current post.Actions
#author_emailEmailReturns the author of the current post.Actions
#author_first_nameFirst NameReturns the author of the current post.Actions
#author_idIDReturns the author of the current post.Actions
#author_last_nameLast NameReturns the author of the current post.Actions
#author_nicknameNicknameReturns the author of the current post.Actions

Blog

VariableNameDescriptionUsage
#blog_admin_emailAdmin EmailReturns the Administrator Email Address setting in WordPress Settings > General.Actions
#blog_charsetCharacter SetReturns the site character set.Client-side & Actions
#blog_dateCurrent DateReturns the blog time formatted according to the Time Format setting found in WordPress Settings > General. For more information about this variable, click here.Actions
#blog_date_custom("format", seconds_offset)Custom DateReturns the blog date and time in the specified format (PHP date format). For more information about this variable, click here.Actions
#blog_languageLanguageReturns the Language setting in WordPress Settings > General.Client-side & Actions
#blog_nameNameReturns the Site Title setting in WordPress Settings > General.Client-side & Actions
#blog_timeCurrent TimeReturns the blog time formatted according to the Date Format setting found in WordPress Settings > General. For more information about this variable, click here.Actions
#blog_urlURLReturns the WordPress Address (URL) setting in WordPress Settings > General.Client-side & Actions

Calculation

VariableNameDescriptionUsage
#calc(calculation)CalculationReturns the calculated value. For more information about this variable, click here.Client-side

Character

VariableNameDescriptionUsage
#character_countCountReturns the total character count. For more information about this variable, click here.
#character_count_labelCount LabelReturns 'character' or 'characters' depending on the character count. For more information about this variable, click here.
#character_maxMaximumReturns the maximum character length that you set for a field. For more information about this variable, click here.
#character_max_labelMaximum LabelReturns 'character' or 'characters' depending on the maximum character length. For more information about this variable, click here.
#character_minMinimumReturns the minimum character length that you set for a field. For more information about this variable, click here.
#character_min_labelMinimum LabelReturns 'character' or 'characters' depending on the minimum character length. For more information about this variable, click here.
#character_remainingCount RemainingIf you set a maximum character length for a field, this will return the total remaining character count. For more information about this variable, click here.
#character_remaining_labelCount Remaining LabelIf you set a maximum character length for a field, this will return the total remaining character count. For more information about this variable, click here.

Checkbox

VariableNameDescriptionUsage
#checkbox_count(field_id, include_hidden)Checkbox Checked CountUse this variable to return the number of checkboxes that have been checked in a checkbox field. For example: #checkbox_count(123) where '123' is the field ID shown in the layout editor. Use #text(#checkbox_count(123)) to keep the value dynamically updated. For more information about this variable, click here.Client-side
#checkbox_count_total(field_id, include_hidden)Checkbox Rows CountUse this variable to return the total number of checkboxes in a checkbox field. For example: #checkbox_count_total(123) where '123' is the field ID shown in the layout editor. Use #text(#checkbox_count_total(123)) to keep the value dynamically updated. Set include_hidden attribute to true to include hidden checkboxes. For more information about this variable, click here.Client-side
#checkbox_label(field_id, "delimiter")Checkbox LabelUse this variable to insert the label of a checkbox field on your form. For example: #checkbox_label(123) where '123' is the field ID shown in the layout editor. For more information about this variable, click here.Client-side

Client

VariableNameDescriptionUsage
#client_dateCurrent DateReturns the users web browser local date according to the Date Format setting found in WordPress Settings > General. For more information about this variable, click here.Client-side
#client_date_custom("format", seconds_offset)Custom DateReturns the users web browser local date and time in the specified format (PHP date format). For more information about this variable, click here.Client-side
#client_timeCurrent TimeReturns the users web browser local time according to the Time Format setting found in WordPress Settings > General. For more information about this variable, click here.Client-side

Conditional

VariableNameDescriptionUsage
#endifEnd of IF condition.End of IF condition. For more information about this variable, click here.Client-side & Actions
#if("condition")Start of IF condition.Start of IF condition. For more information about this variable, click here.Client-side & Actions

Data Grid Rows

VariableNameDescriptionUsage
#data_grid_row_action_variableAction Variable ColumnUse this variable within a data grid row to insert the text found in the action variable column. For more information about this variable, click here.
#data_grid_row_labelLabel ColumnUse this variable within a data grid row to insert the text found in the label column. For more information about this variable, click here.
#data_grid_row_pricePrice ColumnUse this variable within a data grid row to insert the text found in the price column. For more information about this variable, click here.
#data_grid_row_price_currencyPrice Column (With Currency)Use this variable within a data grid row to insert the text found in the price column formatted using the currency settings. For more information about this variable, click here.
#data_grid_row_valueValue ColumnUse this variable within a data grid row to insert the text found in the value column. For more information about this variable, click here.
#data_grid_row_woocommerce_cartWooCommerce Cart ColumnUse this variable within a data grid row to insert the text found in the WooCommerce cart column. For more information about this variable, click here.

Date

VariableNameDescriptionUsage
#date_format("date", "format")Format a date stringReturn a date formatted according to the PHP date function. The date supplied must be in a supported format such as ISO 8601, for example: 2025-12-14T00:29:53+00:00. For field related date formatting, see: #field_date_formatClient-side & Actions

E-Commerce

VariableNameDescriptionUsage
#ecommerce_cart_discountDiscountExcludes currency symbol. For more information about this variable, click here.Client-side & Actions
#ecommerce_cart_discount_currencyDiscount (Currency)Includes currency symbol. For more information about this variable, click here.Client-side & Actions
#ecommerce_cart_discount_spanDiscount (Span)Excludes currency symbol. For more information about this variable, click here.Client-side
#ecommerce_cart_discount_span_currencyDiscount (Span Currency)Includes currency symbol. For more information about this variable, click here.Client-side
#ecommerce_cart_gift_wrapGift WrapExcludes currency symbol. For more information about this variable, click here.Client-side & Actions
#ecommerce_cart_gift_wrap_currencyGift Wrap (Currency)Includes currency symbol. For more information about this variable, click here.Client-side & Actions
#ecommerce_cart_gift_wrap_spanGift Wrap (Span)Excludes currency symbol. For more information about this variable, click here.Client-side
#ecommerce_cart_gift_wrap_span_currencyGift Wrap (Span Currency)Includes currency symbol. For more information about this variable, click here.Client-side
#ecommerce_cart_handling_feeHandling FeeExcludes currency symbol. For more information about this variable, click here.Client-side & Actions
#ecommerce_cart_handling_fee_currencyHandling Fee (Currency)Includes currency symbol. For more information about this variable, click here.Client-side & Actions
#ecommerce_cart_handling_fee_spanHandling Fee (Span)Excludes currency symbol. For more information about this variable, click here.Client-side
#ecommerce_cart_handling_fee_span_currencyHandling Fee (Span Currency)Includes currency symbol. For more information about this variable, click here.Client-side
#ecommerce_cart_insuranceInsuranceExcludes currency symbol. For more information about this variable, click here.Client-side & Actions
#ecommerce_cart_insurance_currencyInsurance (Currency)Includes currency symbol. For more information about this variable, click here.Client-side & Actions
#ecommerce_cart_insurance_spanInsurance (Span)Excludes currency symbol. For more information about this variable, click here.Client-side
#ecommerce_cart_insurance_span_currencyInsurance (Span Currency)Includes currency symbol. For more information about this variable, click here.Client-side
#ecommerce_cart_otherOtherExcludes currency symbol. For more information about this variable, click here.Client-side & Actions
#ecommerce_cart_other_currencyOther (Currency)Includes currency symbol. For more information about this variable, click here.Client-side & Actions
#ecommerce_cart_other_spanOther (Span)Excludes currency symbol. For more information about this variable, click here.Client-side
#ecommerce_cart_other_span_currencyOther (Span Currency)Includes currency symbol. For more information about this variable, click here.Client-side
#ecommerce_cart_shippingShippingExcludes currency symbol. For more information about this variable, click here.Client-side & Actions
#ecommerce_cart_shipping_currencyShipping (Currency)Includes currency symbol. For more information about this variable, click here.Client-side & Actions
#ecommerce_cart_shipping_discountShipping DiscountExcludes currency symbol. For more information about this variable, click here.Client-side & Actions
#ecommerce_cart_shipping_discount_currencyShipping Discount (Currency)Includes currency symbol. For more information about this variable, click here.Client-side & Actions
#ecommerce_cart_shipping_discount_spanShipping Discount (Span)Excludes currency symbol. For more information about this variable, click here.Client-side
#ecommerce_cart_shipping_discount_span_currencyShipping Discount (Span Currency)Includes currency symbol. For more information about this variable, click here.Client-side
#ecommerce_cart_shipping_spanShipping (Span)Excludes currency symbol. For more information about this variable, click here.Client-side
#ecommerce_cart_shipping_span_currencyShipping (Span Currency)Includes currency symbol. For more information about this variable, click here.Client-side
#ecommerce_cart_subtotalSubtotalExcludes currency symbol. For more information about this variable, click here.Client-side & Actions
#ecommerce_cart_subtotal_currencySubtotal (Currency)Includes currency symbol. For more information about this variable, click here.Client-side & Actions
#ecommerce_cart_subtotal_spanSubtotal (Span)Excludes currency symbol. For more information about this variable, click here.Client-side
#ecommerce_cart_subtotal_span_currencySubtotal (Span Currency)Includes currency symbol. For more information about this variable, click here.Client-side
#ecommerce_cart_taxTaxExcludes currency symbol. For more information about this variable, click here.Client-side & Actions
#ecommerce_cart_tax_currencyTax (Currency)Includes currency symbol. For more information about this variable, click here.Client-side & Actions
#ecommerce_cart_tax_spanTax (Span)Excludes currency symbol. For more information about this variable, click here.Client-side
#ecommerce_cart_tax_span_currencyTax (Span Currency)Includes currency symbol. For more information about this variable, click here.Client-side
#ecommerce_cart_totalTotalExcludes currency symbol. For more information about this variable, click here.Client-side & Actions
#ecommerce_cart_total_currencyTotal (Currency)Includes currency symbol. For more information about this variable, click here.Client-side & Actions
#ecommerce_cart_total_spanTotal (Span)Excludes currency symbol. For more information about this variable, click here.Client-side
#ecommerce_cart_total_span_currencyTotal (Span Currency)Includes currency symbol. For more information about this variable, click here.Client-side
#ecommerce_currency_symbolCurrency SymbolReturns the current currency symbol. For more information about this variable, click here.Client-side & Actions
#ecommerce_field_price(field_id)Field Value as PriceUse this variable to insert the value of a price field on your form. For example: #field(123) where '123' is the field ID shown in the layout editor. This variable will neatly format a currency value according to your E-Commerce settings. An example output might be: $123.00 For more information about this variable, click here.Client-side & Actions
#ecommerce_payment_methodPayment MethodExcludes currency symbol. For more information about this variable, click here.Client-side & Actions
#ecommerce_price(price)Value as PriceConvert the number input to a price that matches the configured e-commerce currency settings. An example output might be: $123.00 For more information about this variable, click here.Client-side & Actions
#ecommerce_statusOrder StatusExcludes currency symbol. For more information about this variable, click here.Client-side & Actions
#ecommerce_transaction_idTransaction IDExcludes currency symbol. For more information about this variable, click here.Client-side & Actions

Email

VariableNameDescriptionUsage
#email_charsetCharacter setReturns the email character set. For more information about this variable, click here.Actions
#email_content_typeContent typeReturns the email content type. For more information about this variable, click here.Actions
#email_ecommerceE-Commerce ValuesReturns a list of the e-commerce transaction details such as total, transaction ID and status fields. For more information about this variable, click here.Actions
#email_logoLogoReturns the email logo specified in WS Form Settings > Variables. For more information about this variable, click here.Actions
#email_subjectSubjectReturns the email subject line. For more information about this variable, click here.Actions
#email_submission(tab_labels, section_labels, field_labels, blank_fields, static_fields)Submitted FieldsReturns a list of the fields captured during a submission. You can either use: #email_submission or provide additional parameters to toggle tab labels, section labels, blank fields and static fields (such as text or HTML areas of your form). Specify 'true' or 'false' for each parameter, for example: #email_submission(true, true, false, true, true) For more information about this variable, click here.Actions
#email_trackingTracking dataReturns a list of all the enabled tracking data that was captured when the form was submitted. For more information about this variable, click here.Actions

Field

VariableNameDescriptionUsage
#field(field_id, "delimiter", "column")Field ValueUse this variable to insert the value of a field on your form. For example: #field(123) where '123' is the field ID shown in the layout editor. If delimiter specified, fields with multiple values (e.g. checkboxes) will be separated by the specified delimiter. If column is specified it will return the value found in that data grid column. The value of column can be the column label or index (starting with 0).Client-side & Actions
#field_count_char(field_id, "regex_filter")Count the Number of Characters in a FieldUse this variable to insert the number of characters in a field on your form. For example: #calc(#field_count_char(123)) where '123' is the field ID shown in the layout editor. Optionally specify a JavaScript regex to filter the characters included in the calculation. For example: #calc(#field_count_char(123, "/[^0-9a-z]/gi")).Client-side
#field_count_word(field_id, "regex_filter")Count the Number of Words in a FieldUse this variable to insert the number of words in a field on your form. For example: #calc(#field_count_word(123)) where '123' is the field ID shown in the layout editor. Optionally specify a JavaScript regex to filter the characters included in the calculation.Client-side
#field_date_age(field_id, "period")Field Date AgeReturn the age of the provided date field. Period: y = Years (Default), m = Months, d = Days, h = Hours, n = Minutes, s = SecondsClient-side
#field_date_format(field_id, "format")Field Date FormattedReturn a field formatted according to the PHP date function.Client-side & Actions
#field_date_offset(field_id, seconds_offset, "format")Field Date Adjusted by Offset in SecondsReturn a date adjusted by an offset in seconds.Client-side & Actions
#field_float(field_id)Field Value as Floating Point NumberUse this variable to insert the value of a field on your form as a floating point number. For example: #field(123) where '123' is the field ID shown in the layout editor. This can be used to convert prices to floating point numbers. An example output might be: 123.45Client-side & Actions
#field_label(field_id)Field LabelReturns the field label by ID.Client-side & Actions
#field_max_id(field_id)Field ID with Max ValueUse this variable to return the ID of the field containing highest value. For example: #calc(#field_max_id(5, 6, 7, 8)). This would check fields IDs 5, 6, 7, and 8 and return the field ID containing the highest value.Client-side
#field_max_label(field_id)Field Label with Max ValueUse this variable to return the label of the field containing highest value. For example: #calc(#field_max_id(5, 6, 7, 8)). This would check fields IDs 5, 6, 7, and 8 and return the field label containing the highest value.Client-side
#field_max_value(field_id)Maximum Value of FieldsUse this variable to return the highest value for the supplied field IDs. For example: #calc(#field_max_value(5, 6, 7, 8)). This would check fields IDs 5, 6, 7, and 8 and return the highest value contained within those fields.Client-side
#field_min_id(field_id)Field ID with Min ValueUse this variable to return the ID of the field containing lowest value. For example: #calc(#field_min_id(5, 6, 7, 8)). This would check fields IDs 5, 6, 7, and 8 and return the field ID containing the lowest value.Client-side
#field_min_label(field_id)Field Label with Min ValueUse this variable to return the label of the field containing lowest value. For example: #calc(#field_min_id(5, 6, 7, 8)). This would check fields IDs 5, 6, 7, and 8 and return the field label containing the lowest value.Client-side
#field_min_value(field_id)Minimum Value of FieldsUse this variable to return the minimum value for the supplied field IDs. For example: #calc(#field_min_value(5, 6, 7, 8)). This would check fields IDs 5, 6, 7, and 8 and return the lowest value contained within those fields.Client-side

Form

VariableNameDescriptionUsage
#form_checksumChecksumReturns the form checksum.Client-side & Actions
#form_frameworkFrameworkReturns the current framework being used to render the form.Client-side & Actions
#form_idIDReturns the ID of the form.Client-side & Actions
#form_instance_idInstance IDReturns the form instance ID. For more information about this variable, click here.Client-side
#form_labelLabelReturns the form label.Client-side & Actions
#form_obj_idDOM Selector IDReturns the DOM selector ID of the form element. For more information about this variable, click here.Client-side

Freshdesk

VariableNameDescriptionUsage
#freshdesk_ticket_idTicket IDReturns the ID of the created ticket.Actions
#freshdesk_ticket_urlTicket URLReturns the URL of the created ticket in your Freshdesk account. Do not use this URL in any communications to the person submitting the ticket.Actions

HTTP

VariableNameDescriptionUsage
#post_var("key")Post Key ValueReturns the value of the supplied POST key.Actions
#query_var("parameter", "default_value")Query String Parameter ValueReturns the value of the supplied query string parameter.Client-side & Actions
#request_urlRequest URLReturns the current request URL.Client-side & Actions

Hash

VariableNameDescriptionUsage
#hash_md5("string")MD5Returns the MD5 hash of the input string. Server-side only.Actions
#hash_sha256("string")SHA-256Returns the SHA-256 hash of the input string. Server-side only.Actions

InstaWP

VariableNameDescriptionUsage
#instawp_site_idSite IDReturns the ID of the site created.Actions
#instawp_site_passwordSite passwordReturns the administrator password of the site created.Actions
#instawp_site_urlSite URLReturns the URL of the site created.Actions
#instawp_site_url_auto_loginSite Auto Login URLReturns the auto login URL of the site created.Actions
#instawp_site_usernameSite usernameReturns the administrator username of the site created.Actions

Local Storage

VariableNameDescriptionUsage
#local_storage_get("key")Get local storage key valueReturns the value of a local storage key. For more information about this variable, click here.Client-side

Math

VariableNameDescriptionUsage
#abs(number)AbsoluteReturns the absolute value of a number. For more information about this variable, click here.Client-side
#acos(number)Inverse CosineReturns the inverse cosine of a number in radians. For more information about this variable, click here.Client-side
#asin(number)Inverse SineReturns the inverse sine of a number in radians. For more information about this variable, click here.Client-side
#atan(number)Inverse TangentReturns the inverse tangent of a number in radians. For more information about this variable, click here.Client-side
#avg(number)AverageReturns the average of all the input numbers. For more information about this variable, click here.Client-side
#ceil(number)CeilingRounds a number up to the next largest whole number. For more information about this variable, click here.Client-side
#cos(radians)CosineReturns the cosine of a radian number. For more information about this variable, click here.Client-side
#exp(number)Euler'sReturns E to the power of a number. For more information about this variable, click here.Client-side
#floor(number)FloorReturns the largest integer value that is less than or equal to a number. For more information about this variable, click here.Client-side
#log(number)LogarithmReturns the natural logarithm of a number. For more information about this variable, click here.Client-side
#max(number)MaximumReturns the maxiumum value of the supplied numbers. For more information about this variable, click here.Client-side
#min(number)MinimumReturns the lowest value of the supplied numbers. For more information about this variable, click here.Client-side
#negative(number)NegativeReturns 0 if positive, or original value if negative. For more information about this variable, click here.Client-side
#piPIReturns an approximate value of PI. For more information about this variable, click here.Client-side
#positive(number)PositiveReturns 0 if negative, or original value if positive. For more information about this variable, click here.Client-side
#pow(base, exponent)Base to the Exponent PowerReturns the base to the exponent power. For more information about this variable, click here.Client-side
#round(number, decimals)RoundReturns the rounded value of a number. For more information about this variable, click here.Client-side
#sin(radians)SineReturns the sine of a radian number. For more information about this variable, click here.Client-side
#sqrt(number)Square RootReturns the square root of the number. For more information about this variable, click here.Client-side
#tan(radians)TangentReturns the tangent of a radian number. For more information about this variable, click here.Client-side

Number

VariableNameDescriptionUsage
#number_format(number, decimals, "decimal_separator", "thousand_separator")Format NumberReturns a number with grouped thousands. Same as the PHP number_format function.Client-side & Actions

OpenAI

VariableNameDescriptionUsage
#openai_completion_tokensOutputReturns the completion token count from OpenAI.Actions
#openai_inputInputReturns the input for OpenAI.Actions
#openai_modeOutputReturns the OpenAI mode.Actions
#openai_outputOutputReturns the output from OpenAI.Actions
#openai_prompt_tokensPrompt TokensReturns the prompt token count from OpenAI.Actions
#openai_total_tokensOutputReturns the total token count from OpenAI.Actions

Option

VariableNameDescriptionUsage
#option_get("option_name", "parameter/key")Get OptionReturns an option value by option name. If the option value is an object or array you can specify the object parameter or array key to return. e.g. #option_get("my_setting_page_key", "email")Actions

PDF

VariableNameDescriptionUsage
#pdf_linkPDF Link (Download)Returns a 'Download PDF' link to the PDF.Actions
#pdf_link_viewPDF Link (View)Returns a 'View PDF' link to the PDF.Actions
#pdf_urlPDF URL (Download)Returns the URL to the PDF. URL downloads the PDF.Actions
#pdf_url_viewPDF URL (View)Returns the URL to the PDF. URL shows the PDF in the browser.Actions

Post

VariableNameDescriptionUsage
#post_contentContentReturns the post content.Actions
#post_dateDate CreatedReturns the post date according to the Date Format setting found in WordPress Settings > General.Client-side & Actions
#post_date_custom("format", seconds_offset)Date / Time Created - CustomReturns the post creation date and time in the specified format (PHP date format). For more information about this variable, click here.Client-side & Actions
#post_date_modifiedDate ModifiedReturns the post modified date according to the Date Format setting found in WordPress Settings > General.Client-side & Actions
#post_date_modified_custom("format", seconds_offset)Date / Time Modified - CustomReturns the post modified date and time in the specified format (PHP date format). For more information about this variable, click here.Client-side & Actions
#post_excerptExcerptReturns the post excerpt.Actions
#post_idIDReturns the post ID.Client-side & Actions
#post_meta("key")Meta ValueReturns the post meta value for the key specified.Client-side & Actions
#post_nameSlugReturns the post slug.Client-side & Actions
#post_parentParent IDReturns the post parent ID.Client-side & Actions
#post_statusStatusReturns the post status.Client-side & Actions
#post_timeTime CreatedReturns the post creation time according to the Time Format setting found in WordPress Settings > General.Client-side & Actions
#post_time_modifiedTime ModifiedReturns the post modified time according to the Time Format setting found in WordPress Settings > General.Client-side & Actions
#post_titleTitleReturns the post title.Client-side & Actions
#post_typeTypeReturns the post type.Client-side & Actions
#post_urlPublic URLReturns the post URL.Client-side & Actions
#post_url_editAdmin URLReturns the post admin URL.Client-side & Actions

Progress

VariableNameDescriptionUsage
#progressNumber (0 to 100)Returns the progress as number from 0 to 100. For more information about this variable, click here.
#progress_percentPercent (0% to 100%)Returns the progress as a percentage from 0% to 100%. For more information about this variable, click here.
#progress_remainingNumber Remaining (100 to 0)Returns the remainig progress as number from 0 to 100. For more information about this variable, click here.
#progress_remaining_percentPercent Remaining (100% to 0%)Returns the remaining progress as a percentage from 0% to 100%. For more information about this variable, click here.

Radio

VariableNameDescriptionUsage
#radio_label(field_id)Radio LabelUse this variable to insert the label of a radio field on your form. For example: #radio_label(123) where '123' is the field ID shown in the layout editor. For more information about this variable, click here.Client-side

Random Numbers

VariableNameDescriptionUsage
#random_number(min, max)Random NumberOutputs an integer between the specified minimum and maximum attributes. This function does not generate cryptographically secure values, and should not be used for cryptographic purposes. For more information about this variable, click here.Client-side & Actions

Random Strings

VariableNameDescriptionUsage
#random_string(length, "characters")Random StringOutputs a string of random characters. Use the length attribute to control how long the string is and use the characters attribute to control which characters are randomly selected. This function does not generate cryptographically secure values, and should not be used for cryptographic purposes. For more information about this variable, click here.Client-side & Actions

Seconds

VariableNameDescriptionUsage
#seconds_daySeconds in a dayReturns the number of seconds in a day. For more information about this variable, click here.Client-side & Actions
#seconds_epochSeconds since EpochReturns the number of seconds since the Unix Epoch (January 1 1970 00:00:00 GMT). For more information about this variable, click here.Client-side & Actions
#seconds_epoch_midnightSeconds since Epoch at midnightReturns the number of seconds since the Unix Epoch (January 1 1970 00:00:00 GMT) to the closest previous midnight. For more information about this variable, click here.Client-side
#seconds_hourSeconds in an hourReturns the number of seconds in an hour. For more information about this variable, click here.Client-side & Actions
#seconds_minuteSeconds in a minuteReturns the number of seconds in a minute. For more information about this variable, click here.Client-side & Actions
#seconds_weekSeconds in a weekReturns the number of seconds in a week. For more information about this variable, click here.Client-side & Actions
#seconds_yearSeconds in a yearReturns the number of seconds in a common year. For more information about this variable, click here.Client-side & Actions

Section

VariableNameDescriptionUsage
#section_label("section_id")Section LabelReturns the section label. For more information about this variable, click here.Client-side & Actions
#section_row_count("section_id")Section Row CountReturns the total number of rows in a repeatable section. For more information about this variable, click here.Client-side
#section_row_indexSection Row IndexReturns the row index in a repeatable section. For more information about this variable, click here.Client-side
#section_row_numberSection Row NumberReturns the row number in a repeatable section. For more information about this variable, click here.Client-side

Section Rows

VariableNameDescriptionUsage
#section_rows_endSection Rows EndDefines the end point for looping through repeatable section rows. For more information about this variable, click here.Client-side & Actions
#section_rows_start("section_id")Start Rows StartDefines the start point for looping through repeatable section rows. For more information about this variable, click here.Client-side & Actions

Select

VariableNameDescriptionUsage
#select_count(field_id)Select CountUse this variable to return the number of options that have been selected in a select field. For example: #select_count(123) where '123' is the field ID shown in the layout editor. Use #text(#select_count(123)) to keep the value dynamically updated. For more information about this variable, click here.Client-side
#select_count_total(field_id)Select Total CountUse this variable to return the total number of options in a select field. For example: #select_count_total(123) where '123' is the field ID shown in the layout editor. Use #text(#select_count_total(123)) to keep the value dynamically updated. For more information about this variable, click here.Client-side
#select_option_text(field_id, "delimiter")Select Option TextUse this variable to insert the selected option text of a select field on your form. For example: #select_option_text(123) where '123' is the field ID shown in the layout editor. For more information about this variable, click here.Client-side

Server

VariableNameDescriptionUsage
#server_dateCurrent DateReturns the server date according to the Date Format setting found in WordPress Settings > General. For more information about this variable, click here.Actions
#server_date_custom("format", seconds_offset)Custom DateReturns the server date and time in the specified format (PHP date format). For more information about this variable, click here.Actions
#server_timeCurrent TimeReturns the server time according to the Date Format setting found in WordPress Settings > General. For more information about this variable, click here.Actions

Session Storage

VariableNameDescriptionUsage
#session_storage_get("key")Get session storage key valueReturns the value of a session storage key. For more information about this variable, click here.Client-side

Skin

VariableNameDescriptionUsage
#skin_border_radiusBorder - RadiusFor more information about this variable, click here.Client-side & Actions
#skin_border_styleBorder - StyleFor more information about this variable, click here.Client-side & Actions
#skin_border_widthBorder - WidthFor more information about this variable, click here.Client-side & Actions
#skin_box_shadow_widthBox Shadow - WidthFor more information about this variable, click here.Client-side & Actions
#skin_color_dangerColor - DangerFor more information about this variable, click here.Client-side & Actions
#skin_color_defaultColor - DefaultFor more information about this variable, click here.Client-side & Actions
#skin_color_default_invertedColor - Default (Inverted)For more information about this variable, click here.Client-side & Actions
#skin_color_default_lightColor - Default (Light)For more information about this variable, click here.Client-side & Actions
#skin_color_default_lighterColor - Default (Lighter)For more information about this variable, click here.Client-side & Actions
#skin_color_default_lightestColor - Default (Lightest)For more information about this variable, click here.Client-side & Actions
#skin_color_informationColor - InformationFor more information about this variable, click here.Client-side & Actions
#skin_color_primaryColor - PrimaryFor more information about this variable, click here.Client-side & Actions
#skin_color_secondaryColor - SecondaryFor more information about this variable, click here.Client-side & Actions
#skin_color_successColor - SuccessFor more information about this variable, click here.Client-side & Actions
#skin_color_warningColor - WarningFor more information about this variable, click here.Client-side & Actions
#skin_font_familyFont - FamilyFor more information about this variable, click here.Client-side & Actions
#skin_font_sizeFont - SizeFor more information about this variable, click here.Client-side & Actions
#skin_font_size_largeFont - Size (Large)For more information about this variable, click here.Client-side & Actions
#skin_font_size_smallFont - Size (Small)For more information about this variable, click here.Client-side & Actions
#skin_font_weightFont - WeightFor more information about this variable, click here.Client-side & Actions
#skin_line_heightLine HeightFor more information about this variable, click here.Client-side & Actions

String

VariableNameDescriptionUsage
#capitalize("string")Capitalize a stringReturns the capitalized version of an input string. For more information about this variable, click here.Client-side & Actions
#lower("string")LowercaseReturns the lowercase version of the input string. For more information about this variable, click here.Client-side & Actions
#name_first("string")Return the first name Returns the first name from a full name. For more information about this variable, click here.Client-side & Actions
#name_last("string")Return the last name Returns the last name from a full name. For more information about this variable, click here.Client-side & Actions
#name_middle("string")Return the middle name Returns the middle name from a full name. For more information about this variable, click here.Client-side & Actions
#name_prefix("string")Return the name prefix Returns the prefix from a full name. For more information about this variable, click here.Client-side & Actions
#name_suffix("string")Return the name suffixReturns the suffix from a full name. For more information about this variable, click here.Client-side & Actions
#sentence("string")Sentence case a stringReturns the sentence cased version of an input string. For more information about this variable, click here.Client-side & Actions
#slug("string")Convert a string to a slugReturns the string as a slug suitable for URLs. For more information about this variable, click here.Client-side & Actions
#trim("string")Trim a stringReturns the trimmed string. For more information about this variable, click here.Client-side & Actions
#ucfirst("string")Uppercase first letterReturns the uppercase first letter version of the input string. For more information about this variable, click here.Client-side & Actions
#ucwords("string")Uppercase wordsReturns the uppercase words version of the input string. For more information about this variable, click here.Client-side & Actions
#upper("string")UppercaseReturns the uppercase version of the input string. For more information about this variable, click here.Client-side & Actions
#wpautop("string")Apply wpautop to a stringReturns the string with wpautop applied to it. For more information about this variable, click here.Client-side & Actions

Stripe Elements

VariableNameDescriptionUsage
#stripe_customer_idCustomer IDReturns the customer ID used or created during the transaction.Actions
#stripe_subscription_idSubscription IDReturns the subscription ID for subscription transactions.Actions
#stripe_transaction_idTransaction IDReturns the transaction ID for one-time transactions.Actions

Submission

VariableNameDescriptionUsage
#submit_admin_linkAdmin LinkLink to submission in WordPress admin. For more information about this variable, click here.Actions
#submit_admin_urlAdmin URLURL to submission in WordPress admin. For more information about this variable, click here.Actions
#submit_date_addedDate AddedReturns the date and time of the submission according to the Date Format setting found in WordPress Settings > General. For more information about this variable, click here.Actions
#submit_date_added_custom("format")Date Added CustomReturns the submit date and time in the specified format (PHP date format). For more information about this variable, click here.Actions
#submit_hashHashReturns the anonymized hash ID of the submission. For more information about this variable, click here.Actions
#submit_idIDReturns the ID of the submission. For more information about this variable, click here.Actions
#submit_linkLinkLink to recall form with submission loaded. Used in conjunction with the 'Save' button. For more information about this variable, click here.Actions
#submit_statusStatusdraft = In Progress, publish = Submitted, error = Error, spam = Spam, trash = Trash. For more information about this variable, click here.Actions
#submit_status_labelStatus LabelReturns a nice version of the submission status. For more information about this variable, click here.Actions
#submit_urlURLURL to recall form with submission loaded. Used in conjunction with the 'Save' button. For more information about this variable, click here.Actions
#submit_user_idUser IDReturns the ID of the user who completed the form. For more information about this variable, click here.Actions

Tab

VariableNameDescriptionUsage
#tab_label(tab_id)Tab LabelReturns the tab label by ID. For more information about this variable, click here.Client-side & Actions

Text

VariableNameDescriptionUsage
#text(content)TextKeep the content dynamically update. For more information about this variable, click here.Client-side

Tracking

VariableNameDescriptionUsage
#tracking_agentAgentStores the website visitors agent (browser type). For more information about this variable, click here.Client-side & Actions
#tracking_durationDurationStores the duration it took to complete the form in seconds. For more information about this variable, click here.Actions
#tracking_geo_locationLocation (By browser)If a website visitors device supports geo location (GPS) this option will prompt and request permission for that data and store the latitude and longitude to a submission. For more information about this variable, click here.Actions
#tracking_hashURL HashHash of the URL. For more information about this variable, click here.Client-side & Actions
#tracking_hostURL HostnameHostname of the URL. For more information about this variable, click here.Client-side & Actions
#tracking_ip_lookup_cityCity (By IP)If checked, WS Form will perform an IP lookup and obtain the city located closest to their approximate location. For more information about this variable, click here.Actions
#tracking_ip_lookup_countryCountry (By IP)If checked, WS Form will perform an IP lookup and obtain the country located closest to their approximate location. For more information about this variable, click here.Actions
#tracking_ip_lookup_latlonLocation (By IP)This will obtain an approximate latitude and longitude of a website visitor by their IP address. For more information about this variable, click here.Actions
#tracking_ip_lookup_regionRegion (By IP)If checked, WS Form will perform an IP lookup and obtain the region located closest to their approximate location. For more information about this variable, click here.Actions
#tracking_ip_lookup_time_zoneTime Zone (By IP)If checked, WS Form will perform an IP lookup and obtain the time zone closest to their approximate location. For more information about this variable, click here.Actions
#tracking_osOperating SystemStores the website visitors operating system. For more information about this variable, click here.Client-side & Actions
#tracking_pathnameURL PathnamePathname of the URL. For more information about this variable, click here.Client-side & Actions
#tracking_query_stringURL Query StringQuery string of the URL. For more information about this variable, click here.Client-side & Actions
#tracking_referrerReferrerStores the web page address a website visitor was on prior to completing the submitted form. For more information about this variable, click here.Client-side & Actions
#tracking_remote_ipRemote IP AddressStores the website visitors remote IP address, e.g. 123.45.67.89 For more information about this variable, click here.Actions
#tracking_urlURL FullFull URL. For more information about this variable, click here.Client-side & Actions
#tracking_utm_campaignUTM CampaignThis can be used to store the UTM (Urchin Tracking Module) campaign parameter. For more information about this variable, click here.Client-side & Actions
#tracking_utm_contentUTM ContentThis can be used to store the UTM (Urchin Tracking Module) content parameter. For more information about this variable, click here.Client-side & Actions
#tracking_utm_mediumUTM MediumThis can be used to store the UTM (Urchin Tracking Module) medium parameter. For more information about this variable, click here.Client-side & Actions
#tracking_utm_sourceUTM SourceThis can be used to store the UTM (Urchin Tracking Module) source parameter. For more information about this variable, click here.Client-side & Actions
#tracking_utm_termUTM TermThis can be used to store the UTM (Urchin Tracking Module) term parameter. For more information about this variable, click here.Client-side & Actions

URL

VariableNameDescriptionUsage
#url_loginLoginReturns the login URL.Actions
#url_logoutLogoutReturns the logout URL.Actions
#url_lost_passwordLost PasswordReturns the lost password URL.Actions
#url_registerRegisterReturns the register URL.Actions

User

VariableNameDescriptionUsage
#user_admin_colorAdmin ColorReturns the user admin color if logged in.Client-side & Actions
#user_bioBioReturns the user biography if logged in.Client-side & Actions
#user_display_nameDisplay NameReturns the user display name if logged in.Client-side & Actions
#user_emailEmailReturns the user email address if logged in.Client-side & Actions
#user_first_nameFirst NameReturns the user first name if logged in.Client-side & Actions
#user_full_nameFull NameReturns the user full name if logged in.Client-side & Actions
#user_idIDReturns the user ID if logged in.Client-side & Actions
#user_last_nameLast NameReturns the user last name if logged in.Client-side & Actions
#user_loginLoginReturns the user ID if logged in.Client-side & Actions
#user_lost_password_keyLost Password KeyReturns the user lost password key.Client-side & Actions
#user_lost_password_url("path")Lost Password URLReturns the user lost password URL.Actions
#user_meta("meta_key")Meta ValueReturns the user meta value for the key specified.Client-side & Actions
#user_nicenameNice NameReturns the user nicename if logged in.Client-side & Actions
#user_nicknameNicknameReturns the user nickname if logged in.Client-side & Actions
#user_registeredRegistration DateReturns the user registration date if logged in.Client-side & Actions
#user_urlURLReturns the user URL if logged in.Client-side & Actions

Word

VariableNameDescriptionUsage
#word_countCountReturns the total word count. For more information about this variable, click here.
#word_count_labelCount LabelReturns 'word' or 'words' depending on the word count. For more information about this variable, click here.
#word_maxMaximumReturns the maximum word length that you set for a field. For more information about this variable, click here.
#word_max_labelMaximum LabelReturns 'word' or 'words' depending on the maximum word length. For more information about this variable, click here.
#word_minMinimumReturns the minimum word length that you set for a field. For more information about this variable, click here.
#word_min_labelMinimum LabelReturns 'word' or 'words' depending on the minimum word length. For more information about this variable, click here.
#word_remainingCount RemainingIf you set a maximum word length for a field, this will show the total remaining word count. For more information about this variable, click here.
#word_remaining_labelCount Remaining LabelIf you set a maximum word length for a field, this will show the total remaining word count. For more information about this variable, click here.

Zendesk

VariableNameDescriptionUsage
#zendesk_ticket_idTicket IDReturns the ID of the created ticket.Actions
#zendesk_ticket_urlTicket URLReturns the URL of the created ticket in your Zendesk account. Do not use this URL in any communications to the person submitting the ticket.Actions

Keywords: merge tags