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.
| 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 |