Computed variables allow form owners to define calculated values using formulas. These variables can reference form fields, use functions, and even reference other computed variables. They work seamlessly with mentions throughout your form.
Overview
Computed variables are powerful calculated fields that:- Evaluate live during form fill (client-side)
- Evaluate on submission for integrations and notifications (server-side)
- Support Excel-like formulas with math, text, and logic functions
- Chain together to create complex calculations
- Work with mentions anywhere you can use field references
Creating Computed Variables
Accessing the Variables Tab
- Open your form in the editor
- Click on Settings (gear icon)
- Navigate to the Variables tab
- Click Add Variable to create a new computed variable
Variable Configuration
Each computed variable has:Formula Editor
The formula editor provides:- Field picker - Insert form fields as references
- Function picker - Browse and insert available functions
- Live validation - Real-time syntax checking
- Preview - See sample output as you type
Formula Syntax
Field References
Reference form fields using curly braces:Operators
Text Concatenation
Use+ or CONCAT() to join text:
Available Functions
Math Functions
Text Functions
Logic Functions
Common Use Cases
Calculate Total Price
Apply Discount
Calculate Tax and Total
Conditional Pricing
Grade Calculator
Full Name
Email Domain
Using Computed Variables
In Mentions
Computed variables appear in the mention dropdown alongside form fields. Look for the 📊 icon:- In Thank You Page content
- In Email notifications (subject, body, reply-to)
- In Redirect URLs
- In Integration payloads
In Conditional Logic
Use computed variables in conditional logic rules:- Open the Logic tab for a field
- Add a condition
- Select your computed variable from the dropdown
- Set the comparison operator and value
- Field:
cv_total - Condition:
greater_than - Value:
100
Variable Dependencies
Computed variables can reference other computed variables:Technical Details
Evaluation Timing
Data Storage
Computed variable values are not stored in submission records. They are calculated on-demand when needed. This ensures:- Always up-to-date calculations
- Smaller database storage
- Formula changes affect past submissions when viewed
Error Handling
If a formula cannot be evaluated (e.g., division by zero, missing field), it returnsnull. Use IFBLANK() or COALESCE() to provide fallback values: