Value Rules

Value Rules

Overview

Value rules let you automatically set an option's value when certain conditions are met. Instead of the customer filling in a field manually, the calculator can pre-fill it, override it, or lock it to a specific value. This is useful for enforcing business logic, providing smart defaults, and simplifying the customer experience. Open any option in the calculator editor and switch to the Value Rules tab to configure them. Value rules are not available for File Upload or Font Picker option types.

Steps

  1. Set a Fallback formula result (optional) — this value is used whenever a formula on the option can't be evaluated (e.g., a referenced field is empty). Think of it as a safe default.
  2. Click Add rule to create a new value rule.
  3. Add conditions — define when this rule should fire using the same condition system as visibility rules (see Rule Conditions).
  4. Set the value — configure what the option should be set to when the conditions match. The available "set to" options depend on the option type (see Details below).
  5. Choose an apply mode (choice types only): Once (auto-fills the value one time; the customer can change it afterward) or Lock while matched (sets the value and prevents changes as long as the conditions are met).

Details

Option Type Set To Value
Number / Slider / Quantity / Measurement A formula result (can reference other option keys)
Text / Text Area / Email A text string
Switch True or False
Date Picker A specific date with an optional relative offset (± days, weeks, months, or years from today)
Time Picker A time string (e.g., "09:00 AM")
Color Picker A hex color value (e.g., #FF5500)
Content Block / Modal A content string (HTML or plain text)
Dropdown / Radio / Button / Checkbox / Color Swatch / Image Swatch One or more selected values, with apply mode (Once or Lock while matched)
Dimensions A value for each named dimension entry

Examples

  • Auto-selecting a size — A Dropdown "Size" has values Small, Medium, and Large. A value rule sets Size to "Medium" (apply mode: Once) when the customer hasn't made a choice yet, giving them a sensible default they can still change.
  • Locking shipping date — A Date Picker "Ship by" is set to "today + 7 days" and locked while a Switch "Express processing" is False. When the customer turns on Express processing, the lock releases and the date rule no longer applies, allowing the customer to pick an earlier date.
    • Related Articles

    • Visibility Rules

      Overview Visibility rules let you dynamically control whether an option is shown, hidden, required, or restricted based on what the customer has selected or entered elsewhere in the calculator. They make your calculator interactive and context-aware ...
    • Custom SKU Rules

      Overview Custom SKU rules let you automatically generate a unique SKU (Stock Keeping Unit) for every product configuration a customer creates. The SKU is built from fragments — short codes assigned to each option value — combined according to a ...
    • Quantity Discount Rules

      Overview Quantity discount rules let you offer volume-based pricing — the more a customer buys, the bigger the discount. Calculator AI supports two modes: 1D (Simple), where discounts depend only on quantity, and 2D (Advanced), where discounts depend ...
    • Rule Conditions

      Overview Conditions are the "if" part of every visibility rule and value rule. Each condition checks the current value of an option or variable and compares it using an operator. When the conditions on a rule are satisfied (based on the All/Any/None ...
    • Working with Options

      Overview Options are the building blocks of your calculator. Each option represents a field, choice, or display element that appears in the calculator on your storefront. This article covers how to manage options — adding, reordering, duplicating, ...