Variables
-
The Variable Cheat Sheet
While you can achieve a whole lot in WS Form without using variables, you can create even more dynamic and powerful forms using them.
-
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.
-
Variables Helper
The Variables Helper is a resource built in to WS Form that provides easy access to our library of 200+ variables.
-
Calculate Character and Word Counts for a Form Field
You can use WS Form PRO to calculate the number of characters or words in a form field.
-
Calculating Minimum and Maximum Field Attributes
WS Form can calculate minimum and maximum field attributes of a series of fields.
-
Combine First and Last Name Fields into a Full Name Field
Using WS Form PRO variables or conditional logic you can easily create a full name field that is automatically updated when a user enters their first or last name.
-
Create a Form Summary
On a long form you may wish to add a summary of the fields the user has completed.
-
Create Random Values
WS Form has two functions that can be used to create random numbers and string.
-
Duplicate / Copy Field Values With #text
The #text(...) variable is used to duplicate the value of field(s) in real-time.
-
Dynamic Label, Placeholder and Help Text With #text
The #text variable can be used in the 'Label' and 'Help Text' settings of fields to create dynamic labels and help text.
-
Formatting Numbers Using #number_format
Numbers can be formatted in WS Form using the #number_format variable.
-
How to Enable File Previews in Emails and PDF Templates
Learn to enable and disable file previews and information.
-
How to Extract First and Last Names from a Full Name
Extract first, middle, last name, prefix, and suffix from a full name field using WS Form variables.
-
Insert Local Storage Values into Fields
You can insert the value of a local storage value into a field using the #local_storage_get variable.
-
Insert Session Storage Values into Fields
You can insert the value of a session storage value into a field using the #session_storage_get variable.
-
Populate a Field With Query String Data
It is possible to populate a field with the value of a query string parameter using the WS Form variable.
-
Post Variables
Display WordPress Post data in your WS Form for dynamic, content-aware forms.
-
Retrieving ACF Option Values Using #option_get
Use the WS Form #option_get variable to retrieve ACF Options Page values from the WordPress wp_options table.
-
Transforming Strings
WS Form can transform the text entered into fields as well as transforming strings using WS Form variables.
-
Use Repeatable Section Count in Calculations
How to use the #section_row_count variable with repeatable sections to calculate other fields.
-
Using #field With Delimiter and Column Parameters
The #field variable 'delimiter' and 'column' parameters allow you to extract data from any column in a data grid as well as separate multiple choices by any character or string you wish.
-
Using Variables in Conditional Logic IF Statements
Learn how to use WS Form variables directly in IF statements to create dynamic conditional logic using query variables, tracking variables, calculated values, and more.
-
Word and Character Counts in Help Text
WS Form can add word or character counters to all types of text fields and in any format you wish.