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.

Areas where WS Form variables can be used are normally accompanied by a field lookup icon [TO DO: Insert hamburger icon]. By clicking this icon, a list of the available variables will be shown below the corresponding field. Click 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("dddd, mmmm dS, yyyy, h:MM:ss TT")

WS Form Variable List

The following variables are available for use in WS Form.

Name / VariableDescription
ACF: Repeater Field
#acf_repeater_field(parent_field,sub_field)

Blog: Admin Email
#blog_admin_email

Blog: Character Set
#blog_charset

Blog: Language
#blog_language

Blog: Name
#blog_name

Blog: URL
#blog_url

Character: Count
#character_count
The total character count.
Character: Count Label
#character_count_label
Shows 'character' or 'characters' depending on the character count.
Character: Count Remaining
#character_remaining
If you set a maximum character length for a field, this will show the total remaining character count.
Character: Count Remaining Label
#character_remaining_label
If you set a maximum character length for a field, this will show the total remaining character count.
Character: Maximum
#character_max
Shows the maximum character length that you set for a field.
Character: Maximum Label
#character_max_label
Shows 'character' or 'characters' depending on the maximum character length.
Character: Minimum
#character_min
Shows the minimum character length that you set for a field.
Character: Minimum Label
#character_min_label
Shows 'character' or 'characters' depending on the minimum character length.
Email: Character set
#email_charset

Email: Content type
#email_content_type

Email: Logo
#email_logo

Email: Subject
#email_subject

Email: Submitted Fields
#email_submission(group_labels,section_labels,blank_fields)

Email: Tracking data
#email_tracking

Form: Checksum
#form_checksum

Form: DOM Selector ID
#form_obj_id

Form: Framework
#form_framework

Form: ID
#form_id

Form: Instance ID
#form_instance_id

Form: Label
#form_label

Form: Session ID
#form_hash

Password: Hint
#password_hint

Post: Date
#post_date

Post: ID
#post_id

Post: Meta Value
#post_meta(key)

Post: Post Custom Date
#post_date_custom(format)

Post: Time
#post_time

Post: Title
#post_title

Post: Type
#post_type

Post: URL
#post_url

Progress: Number (0 to 100)
#progress

Progress: Number Remaining (100 to 0)
#progress_remaining

Progress: Percent (0% to 100%)
#progress_percent

Progress: Percent Remaining (100% to 0%)
#progress_remaining_percent

Query String: Variable
#query_var(variable)

Server: Current Date
#server_date

Server: Current Time
#server_time

Server: Custom Date
#server_date_custom(format)

Submission: Hash
#submit_hash

Submission: ID
#submit_id

Submission: User ID
#submit_user_id

Tracking: Location (By browser)
#tracking_geo_location
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.
Tracking: Operating System
#tracking_os
Stores the website visitors operating system.
Tracking: Referrer
#tracking_referrer
Stores the web page address a website visitor was on prior to completing the submitted form.
Tracking: UTM Campaign
#tracking_utm_campaign
This can be used to store the UTM (Urchin Tracking Module) campaign parameter.
Tracking: UTM Content
#tracking_utm_content
This can be used to store the UTM (Urchin Tracking Module) content parameter.
Tracking: UTM Medium
#tracking_utm_medium
This can be used to store the UTM (Urchin Tracking Module) medium parameter.
Tracking: UTM Source
#tracking_utm_source
This can be used to store the UTM (Urchin Tracking Module) source parameter.
Tracking: UTM Term
#tracking_utm_term
This can be used to store the UTM (Urchin Tracking Module) term parameter.
Word: Count
#word_count
The total word count.
Word: Count Label
#word_count_label
Shows 'word' or 'words' depending on the word count.
Word: Count Remaining
#word_remaining
If you set a maximum word length for a field, this will show the total remaining word count.
Word: Count Remaining Label
#word_remaining_label
If you set a maximum word length for a field, this will show the total remaining word count.
Word: Maximum
#word_max
Shows the maximum word length that you set for a field.
Word: Maximum Label
#word_max_label
Shows 'word' or 'words' depending on the maximum word length.
Word: Minimum
#word_min
Shows the minimum word length that you set for a field.
Word: Minimum Label
#word_min_label
Shows 'word' or 'words' depending on the minimum word length.