Articles in this section
Authenticate Emails with SPF, DKIM, and DMARC Auto forward your emails to Vtiger Managing User Profiles Automate Outgoing Emails in Email Settings Automation - Approvals Automation - Assignment Rules Set up Multi-path Workflows Creating a Scheduled Workflow Automation - Workflow Scheduler Workflows in Vtiger CRM Vtiger Webforms Set up a Workflow Action to Create Event Set up a Workflow Action to Create Records Set up a Workflow Action to Create Task Set up a Workflow Action to Invoke Custom Function Set up a Workflow Action to Create an SMS Task Setting Up a Workflow Action to Send Emails Workflow Action to Update Fields Automation - Webhook Workflow Automation - Expressions Workflow Configuring Business Hours Configuration - Company Details Configuration - Consents Configuring the Customer Portal Maps in Vtiger CRM Configuration - Usage Details Configuring Encrypted Data Fields in Vtiger CRM Configure Picklist Dependencies Considerations for Deactivating Vtiger Users Configuring Field and Record Displays Create Reminders for Records and Inbox Creating a Grid Field Type Dealing with Currencies and Taxes Enable Desktop Notifications on Chrome Web Browsers Vtiger CRM Add-ons IMAP Configuration - 2-way sync between Vtiger and IMAP providers Setting up Autopay & Payment Gateways Inventory - Tax Management Inventory - Terms and Conditions Login to Vtiger on SSO SAML using ADFS Mailroom Functionality for Different Scenarios Manage Multiple Currencies Marketing and Sales - Deal to Project Mapping Lead Conversion Data Mapping Marketing and Sales - Profile Scoring Using the Module Label Editor Configuring Module Numbering Configure My Preferences Feature My Preferences - Calendar Settings Tags in Vtiger My Preferences - Notification Preferences SAML Support in Vtiger CRM Vtiger Mailroom Configuring Module Settings Configuring a Relationship Between Modules Settings - Left Menu Configuring Global Picklists in Vtiger Settings - Set up your Support Team Settings - Start Up Page Configuring Picklist Values Configuring Modules Using Module Builder SLA Policies in Vtiger Troubleshooting Login Issues Add-Edit Unsubscribe Links in your Email Template User Management - Authentication User Management - Encrypted Field Access Logs User Management - Groups User Management - Login History User Management - Profiles User Management - Roles User Management - Settings Log User Management - Sharing Rules User Management - Users User Management - Vtiger Support Access Vtiger Buzz - Chrome Extension for Notifications Vtiger Implementation wizard Vtiger Language Support Setting Up Websense Trackers Vtiger Websense Widgets Creating Custom Modules in Vtiger CRM Configuring Dependent Fields and Blocks for Modules Configuring App Passwords for Gmail Outgoing Server and Yahoo Mail Customizing Module Layouts Configuring Module Layouts & Fields Auto forward Emails from Microsoft Office 365 Automation - SMS Reply Actions Duplicate Record Prevention in Vtiger CRM Generate and Manage Third-party App Passwords in Yahoo Configuration - Storage Guard Customizing your Self-Service Portal Theme Using CSS Styles Adding Hidden Fields to a Webform Login Page Customization Creating Custom Filters Adding a local DNS Entry

Formula Fields

In this article, you will learn how to create and access Formula fields for CRM modules!
S
Shreya Kulkarni
20 Feb, 2026 - Updated  1 month ago

Feature Availability

Vtiger Editions: One Professional | One Enterprise

Introduction

A Formula Field allows you to define a mathematical expression or module-specific rule to automatically calculate values in a module. Once configured, the formula is executed automatically whenever a new record is created or an existing record is edited.

Formula Fields are available for both standard CRM modules and Custom Modules. You can create them from Settings > Module Layouts & Fields.

A formula can be built using:

  • Module fields
  • Vtiger workflow expressions
  • Built-in functions
  • Or a combination of the above

Supported Data Types

You can create Formula Fields for the following data types:

  • Text
  • Decimal
  • Integer
  • Percent
  • Date
  • Textarea
  • Timez
  • DateTime

Key Features

The key features of the Formula Fields are:

  • Automatic Calculation: Formula Fields automatically calculate values whenever a new record is created or an existing record is edited.
  • Supports Multiple Data Types: Create formulas for Text, Decimal, Integer, Percent, Date, DateTime, Time, and Textarea fields.
  • Advanced Expression Support: Use mathematical operators, workflow expressions, and built-in functions (such as roundoff and conditional logic) to create complex formulas.
  • Field and Function Combination: Build formulas using module fields, system functions, or a combination of both.
  • Available for Standard and Custom Modules: Formula Fields can be created for both default CRM modules and custom modules.
  • Report Compatibility: Formula Field values can be used in reports for analysis and insights.
  • Line Item and Record-Level Support:
    • Line item Formula Fields are calculated at the row level.
    • Normal Formula Fields are calculated at the record level.
  • No-Code Configuration: Create and manage formulas directly from Settings > Module Layouts & Fields without requiring technical expertise.
  • Precision Control: Define the maximum number of digits and decimal precision for accurate calculations.
  • Minimal Maintenance: Once configured, the system automatically maintains and updates the formula values without manual intervention.

Note:

  • Formula Fields support all mathematical expressions available in workflow expressions.
  • You can generate reports using formula field values.
  • Formula Fields are not updated during record import or export.
  • Once created, Formula Fields apply only to:
    • Newly created records.
    • Existing records that are edited and saved.

Benefits

The benefits of the Formula Fields are:

  • Automatically updates calculated values
  • Enables quick mathematical calculations and rule execution
  • Reduces manual errors
  • Saves user time
  • Requires minimal implementation effort

In this article, you will learn about:

  • Formula Fields
  • Creating and accessing formula fields

Key Terminology

Key Term

Definition

Formula Field

A custom field type that automatically calculates values based on a defined expression when a record is created or updated.

Expression

The mathematical formula or logical rule used to compute a value (e.g., Quantity * Unit Selling Price).

Field Type – Formula

A field configuration option that enables automatic calculation instead of manual entry.

Value Data Type

The format in which the calculated result is stored (e.g., Decimal, Integer, Date, Percent, Text).

Max Digits Allowed

The maximum number of digits permitted in the formula result.

Decimals

The number of decimal places allowed for numeric formula results.

Use Field

An option that allows module fields to be inserted into the formula expression.

Use Function

An option that allows predefined system functions (e.g., roundoff, conditional logic) to be used in the formula.

Roundoff Function

A built-in function used to round a numeric value to a specified number of decimal places.

Line Item Field

A field calculated at the individual row level within line items (e.g., products in an invoice).

Record-Level Field

A field calculated at the overall record level rather than per line item.

Module Layouts & Fields

The Settings area, where administrators create and manage fields, including Formula Fields.

Workflow Expressions

Supported mathematical and logical expressions that can be used within Formula Fields.

Creating Formula Fields

In this instance, we will create the Price formula field for the Invoices module. You can create a formula for any module.

Follow these steps to create a formula field:

  1. Log in to your CRM account.
  2. Go to the main Menu.
  3. Click Settings
  4. Click Module Layouts & Fields under the Module Management section.
  5. Select a module for which you want to create a formula field - Invoices.
  6. Select a section for which you want to create a formula field - Item Details.
  1. Click +Add Custom Field. The Create Line Item Custom Field window opens.

  1. Enter or select the information below:
    1. Select Field Type - Select Formula.
    2. Label Name - Enter a name for the formula Price.
    3. Max digits allowed - Enter the maximum number of digits you want to allow for the formula field 10.
    4. Decimals - Enter the number of decimals you want to allow for the formula field 2.
    5. Value data type - Select a suitable data type for the formula field Decimal. Note: If you choose Text as a data type, the value becomes characters and not digits.
    6. Expression - Select the fields and functions to be evaluated for the formula:
      1. Use Field - Select the fields to be evaluated, or 
      2. Use Function - Select the functions to be evaluated. Or both if required.
      3. Enter the formula to be executed in the Expression box. For instance, we have selected the following:
        1. Fields - Quantity and Unit Selling Price. 
        2. Function  - Roundoff(field, precision). This function rounds a number to the specified precision. 
        3. Formula - Quantity multiplied (*) by Unit Selling Price, rounded off to 2 decimal values. Hence, the Formula is roundoff(Quantity * Unit Selling Price,2).
        4. Follow these steps to enter the formula roundoff(Quantity * Unit Selling Price,2):
          1. Select the roundoff(field, precision) function.
          2. Select Quantity, Unit Selling Price fields as field values.
          3. Enter 2 as the precision value.
          4. Enter Quantity * Unit Selling Price.
  2. Help Info: Add help information for the field.
  3. Enable / Disable the following field properties:
    1. Mandatory Field
    2. Quick Create
    3. Key Field View
    4. Header View
    5. Mass Edit
  4. Click Save.

Accessing Formula Fields

Follow these steps to access a formula field: 

  1. Log in to the CRM.
  2. Go to the main Menu.
  3. Click Invoices in the Inventory app.

  1. Create an Invoice record with formula field details. For instance, we have created a tender record with a Quantity of 165 and a Unit Selling Price of 850.86.
  2. Click Save.
  3. Go to the Item Details section for which you have created the formula.
  1. View the created formula field Price in the chosen section.
Note:
Formula fields created for:
  • Line item fields are applied at an individual line item row level.
  • Normal (other) fields are applied at the record level.

References

Home Privacy Policy Terms of Service Security Center Policy & Legal Center Contact Us
© Copyright 2025 Vtiger. All rights reserved.
Powered by Vtiger
Facebook Twitter Linkedin Youtube