FeaturesLogic & Calculations
Calculated Fields
Learn how to use calculated fields in GenZform to perform automatic calculations based on form inputs.
Calculated fields automatically compute values based on other form inputs. They're essential for building calculators, order forms with totals, and dynamic pricing.
When to Use Calculated Fields
Calculated fields are perfect for:
- Order totals (quantity × price)
- ROI calculators
- Quote generators
- Score calculations
- Cost estimators
- Any math-based results
Calculated fields update in real-time as users fill out the form, giving instant feedback.
How to Add Calculated Fields
Ask the AI in the chat panel:
Example prompts:
- "Calculate the total as quantity times price"
- "Show the monthly payment based on loan amount and term"
- "Display the discount amount for orders over $100"
- "Calculate BMI from height and weight"
Supported Operations
| Operation | Symbol | Example |
|---|---|---|
| Addition | + | price + shipping |
| Subtraction | - | subtotal - discount |
| Multiplication | × | quantity × unit_price |
| Division | ÷ | total ÷ months |
| Percentage | % | subtotal × 0.08 (8% tax) |
Examples
Order Total
"Calculate total as quantity × unit_price"With Tax
"Calculate subtotal, then add 8% tax for the total"Discount
"If subtotal is over $100, apply 10% discount"Monthly Payment
"Calculate monthly payment: loan_amount ÷ term_months"Score Calculation
"Add up all the quiz answers for a total score"Display Options
Show the Result
"Display the calculated total prominently"Format as Currency
"Show the total formatted as currency ($X,XXX.XX)"Conditional Display
"Only show the discount field if discount is greater than 0"On Thank You Page
"Show the calculated results on the thank you page"Common Use Cases
ROI Calculator
Input: Current cost, New cost, Time period
Calculate: Savings per year, ROI percentageQuote Generator
Input: Service type, Hours needed, Urgency
Calculate: Estimated priceOrder Form
Input: Products, Quantities
Calculate: Subtotal, Tax, Shipping, TotalFrequently Asked Questions
Can I use complex formulas?
Yes! You can combine multiple operations: "Calculate (price × quantity) - discount + shipping."
Do calculated fields update automatically?
Yes, calculations update in real-time as users change input values.
Can I use calculated values in other calculations?
Yes! You can chain calculations: use subtotal to calculate tax, then use both to calculate total.