How to Use Form Variables

FormCrafts allows you to use form variables to show responder input in many places in your form workflow. Example, you can:

  1. Use the responder's name in the email subject
  2. Show a summary of user input on the success text
  3. Perform basic math operations on form variables
  4. Explain the user how their total was calculated

Form variables are enclosed in square brackets, and can be denoted via their field ID (field32, field6) or their field label (Your Name, Choose Your Cake).

Form variables can be used in custom text fields, form success text, hidden fields, email subject, email content, and other places when configuring add-ons.

How to Use Form Variables

Let us learn with an example.

Create a new blank form. Add a one-line-text field labelled Your Name. Add a checkbox field with the label Choose Cake. The Option List for the Choose Cake field would look like this:


The number before the == is the price / value of the option, and the text after == is what the user sees.

Now we will add a Custom Text field with the shown content:

Note that using field ID (field46) over using field labels (Choose Cake) would serve a different purpose. Field IDs use values / price, while field labels use the shown text. In the above example the variable [Choose Cake] would show the cakes selected to the user, and the variable [field46] would show the sum of prices for those cakes.

Note that for math formulas, you can only use field IDs.

You can preview the form and see the form variables in action.

Other Form Variables

So all fields are form variables. However, there are more. Certain variables become available once the user submits the form.

[Response Summary]

This contains a summary of all info entered by the responder. This is useful for adding to email content.

Using form content in emails
Form VariablesPurpose
[Response ID]A unique numeric ID given to the response
[Form ID]Unique numeric ID of the form being submitted
[Form Name]Name of the form being submitted
[Time 24]Date and time returned in 24-hour format
[Time 12]Date and time returned in 12-hour format
[Page URL]The URL of the form page
[Page Title]Title of the form page

In addition, certain add-ons have their own form variables. Example, if you are using Zendesk you have access to the variable [Zendesk Ticket ID].