Skip to main content
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

  1. Open your form in the editor
  2. Click on Settings (gear icon)
  3. Navigate to the Variables tab
  4. 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:
In the editor, you can click the field button to insert fields as interactive pills.

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:
  1. Open the Logic tab for a field
  2. Add a condition
  3. Select your computed variable from the dropdown
  4. Set the comparison operator and value
Example: Show a field only when total is over $100:
  • Field: cv_total
  • Condition: greater_than
  • Value: 100

Variable Dependencies

Computed variables can reference other computed variables:
Circular Dependencies: The system automatically detects and prevents circular references. Variable A cannot reference Variable B if B already references A (directly or indirectly).

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 returns null. Use IFBLANK() or COALESCE() to provide fallback values:

Best Practices

Naming: Use descriptive names like “Total Price” or “Shipping Cost” rather than generic names like “Calculation 1”.
Validation: Test your formulas with sample data using the preview feature before saving.
Modularity: Break complex calculations into smaller variables that reference each other. This makes formulas easier to understand and debug.
Performance: While computed variables are efficient, avoid extremely complex chains of 10+ interdependent variables for best performance.